searching on .net

Post Reply
basement_addict
Posts: 78
Joined: Mon Nov 19, 2001 5:20 pm

searching on .net

Post by basement_addict »

I am trying to find a way to index terms like .net but I think adding a . to addexp will cause problems when searching / indexing a term that comes at the end of a sentence.

For example, if I index the following string:

Our database is Texis.

will a search for the word texis show up even though a period is attached to it?

I would think the answer would be no because what gets indexed would be "Texis."

Thanks
User avatar
mark
Site Admin
Posts: 5513
Joined: Tue Apr 25, 2000 6:56 pm

searching on .net

Post by mark »

You should keep the normal expression to handle words without . in them. Then add an expression to match those with . as well. You could write the expression to match only leading . (eg: ">>\.=[\alpha]{1,99}") or . anywhere (eg: "[\alpha\.]{2,99}").
basement_addict
Posts: 78
Joined: Mon Nov 19, 2001 5:20 pm

searching on .net

Post by basement_addict »

Would it be possible for calling addexp to allow indexing of only .net?

something like : ">>\.=net"
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

searching on .net

Post by John »

Yes.
John Turnbull
Thunderstone Software
basement_addict
Posts: 78
Joined: Mon Nov 19, 2001 5:20 pm

searching on .net

Post by basement_addict »

hi,

is there an expression I could use to index .net without indexing email addresses?
User avatar
mark
Site Admin
Posts: 5513
Joined: Tue Apr 25, 2000 6:56 pm

searching on .net

Post by mark »

Here's one way: "[^\alpha]\P=>>\.net=\F[^\alpha]"
Post Reply