You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@lucene.apache.org by Benjamin Arai <me...@benjaminarai.com> on 2007/11/21 09:06:57 UTC

Determining which objects were matched for a given query

Hi,

Is it possible to determine which portion of the query was satisfied for 
individual documents retrieved?  For example, suppose I run the query 
"dog & cat | moose".  It is possible to retrieve a document with both 
"moose" and "cat" in the document but not "dog"? How do I determine 
which objects from the query were satisfied?  In this particular example 
"moose" is a satisfying object. In contrast,  the binary AND was not met 
for both "dog" and "cat", so even though "cat" was in the document it is 
excluded from the  satisfying objects list.

Thanks in advance,

Benjamin