lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eran Sevi" <>
Subject Best way to get payloads
Date Thu, 22 May 2008 08:03:10 GMT

I'm running a SpanQuery and get the Spans result which tell me the documents
and positions of what I searched for.
I would now like to get the payloads in those documents and positions
without having to iterate on TermPositions since I don't have a term but I
do have the document and position.

Maybe Spans should be extended to also hold the payloads as well as the
start and end positions of the span.

Another option might be to extend TermPositionVector and return an array of

 Can anyone think on a way to do it ?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message