Page 1 of 1
Non-standard search phrase
Posted: Tue Jul 15, 1997 12:22 pm
by Thunderstone
The pages that I index have weird but important character strings that need
to be recognized as "words." Four examples are
2(d)
1000(e)4j
74-543,456
75/432,765
I tried making the index with
gw -index -k"\alnum{2,99}" -k"\ascii{2,99}" -dWebPages
however when I search on "2(d)" I get "nothing found." I'd like to avoid
making my users enter the syntax for a REX search. Any ideas?
Non-standard search phrase
Posted: Tue Jul 15, 1997 1:14 pm
by Thunderstone
Sean Downing said:
There are a number of possibilities:
First, \ascii is probably not the correct expression to use, as
it includes spaces as well as all the other characters. You might
be better of with -k"[\alnum\punct]{2,99}".
Second, make sure you unindex before creating an index with a
different expression, as the expressions used during the first
create will stick.
Third, check for shell escapement of \ etc. Probably not happening
if other searches are working correctly.