How to tell if a record is in an index

Post Reply
jkj2001
Posts: 142
Joined: Fri Mar 29, 2002 1:39 pm

How to tell if a record is in an index

Post by jkj2001 »

We're running a search that looks like this:

tsql "select ID from mytable where myID = '1234' and myDescription like 'CASE LOAD ALPHA -xyzz 12'"

We get zero hits returned. If, however, you look at the record with ID 1234 you see this in the myDescription field:

CASE LOAD ALPHA CLIENT, STATUTE FGEN 12 DATE

And if we run the same search as above but without the -xyzz portion we return a hit.

Essentially, *any* search we run with the exclude (-) operator gives us zero hits, and we can't figure out why. I thought maybe our index didn't have this record in it, though it should. Do you have any notions what may be happening, and how can I check to see if our 'myDescription' index has this particular document in it?
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

How to tell if a record is in an index

Post by Kai »

Since the myID part of the WHERE clause is first, the LIKE part may be linear and not use the Metamorph index. You could search for just the LIKE part of the clause with allinear=0 (and possibly without -xyzz) and see if the 1234 record shows up, which would show that it is in the index.

What version of Texis is this (output of texis -version)?
Post Reply