Page 1 of 1

searching on .net

Posted: Mon Mar 10, 2008 4:56 pm
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

searching on .net

Posted: Mon Mar 10, 2008 5:48 pm
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}").

searching on .net

Posted: Tue Apr 01, 2008 4:40 pm
by basement_addict
Would it be possible for calling addexp to allow indexing of only .net?

something like : ">>\.=net"

searching on .net

Posted: Tue Apr 08, 2008 3:25 pm
by basement_addict
hi,

is there an expression I could use to index .net without indexing email addresses?

searching on .net

Posted: Wed Apr 09, 2008 8:36 am
by mark
Here's one way: "[^\alpha]\P=>>\.net=\F[^\alpha]"