[Xapian-discuss] query question

Alexander Lind malte at webstay.org
Tue Sep 25 23:33:38 BST 2007


Suppose we have two queries that look like this:
query 1: "color:green AND shape:square"
query 2: "(color:green) AND shape:square"

Should these two queries always return the same result set?  They don't 
for me. On my index, query 1 returns 4 results and query 2 returns only 
3 results.
The 4 records returned on query 1 are correct (they all have the correct 
keywords set).
The 3 records returned on query 2 are all from the 4 above, but one is 
missing for no apparent reason.

Is this a bug, or am I missing something?

Thanks
Alec



More information about the Xapian-discuss mailing list