NOT searches descrepancy

Post Reply
skalyanaraman
Posts: 109
Joined: Tue May 29, 2001 9:13 pm

NOT searches descrepancy

Post by skalyanaraman »

Hi,
we have the latest version and we have a record with the following info in it:

FIELD1
'Lucas, George'; Harrison Ford

If we try to search as,

FIELD1 NOT like 'Lucas' and FIELD1 like 'Harrison'

we get the above record as hit.
Even
FIELD1 NOT like 'Lucas'

gives the above record as hit.

We have the field fully indexed and the _T and _D files are 62bytes. so, they are in sync.

Could you please help us?

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

NOT searches descrepancy

Post by mark »

What are your index expressions?
skalyanaraman
Posts: 109
Joined: Tue May 29, 2001 9:13 pm

NOT searches descrepancy

Post by skalyanaraman »

This is what we add before every create index statement.

set delexp=0;set addexp='\alnum{1,99}';set addexp='>>\alpha{1,50},=\alpha{1,50}'

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

NOT searches descrepancy

Post by mark »

Remove ' from wordc at query time:
<SQL "set wordc='[\alpha]'"></SQL>
skalyanaraman
Posts: 109
Joined: Tue May 29, 2001 9:13 pm

NOT searches descrepancy

Post by skalyanaraman »

We have the app which allows users to type in or choose the operator that they want to search on.
making wordc only alphabet is hard for us, just at query time.
Unless, this is a universal solution.
i.e. we take single quote out of the wordc for all searches.

Why taking ' out of wordc fix this anyway?
why only for NOT?

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

NOT searches descrepancy

Post by mark »

Take ' out universally. It causes a slight inconsistency between index and linear search. NOT like does a linear search. You just won't be able to use possessives in the query such as "myron's" but you can still use "myron" to find the "myron" part of "myron's" in the text.
Post Reply