On May 22, 2009, at 12:28 AM, Dmitri Bichko wrote:
Hi,
I may be missing something obvious, but how do I get the payloads for
the specific token positions that were matched by a query?
See SpanQuery.getPayloadSpans() and it's SpanQuery derivatives.
For example, if I have a phrase query li
Hi,
I may be missing something obvious, but how do I get the payloads for
the specific token positions that were matched by a query?
For example, if I have a phrase query like "A keyword B" that matches
the field "A keyword B A", I can get the payloads for A and B with
IndexReader.termPositions()