lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boris Galitsky" <bg7...@rambler.ru>
Subject how to match Documents from Hits with Documents from Query Spans?
Date Tue, 18 Apr 2006 17:08:06 GMT
Hello

  

I am using span queries to get hits (Documents) and occurrences 
(positions) of search terms within these documents.

For some reason, there is a disagreement between the order the 
Documents are returned in hits, and the Documents are referenced (via 
order number, starting from 0) in the Spans?

  

The problem is depicted at the diagram below

  

  

Query => Lucene => hits ->Documents

|                                                               |

Spans -> doc(), start(), end()                 |

          \-----------------------------????????----



  

Lucene gets a Query and gives away hits with resultant Documents, and 
the occurrences of search expression are obtained form the Query. Why 
is there such an odd logic? Again, how to match Documents from Hits 
with Documents from Query Spans?

  

Regards

Boris

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message