Non-standard search phrase

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Non-standard search phrase

Post 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?




User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Non-standard search phrase

Post 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.



Post Reply