Re: Retrieving payloads for terms matched by a query

2009-05-22 Thread Grant Ingersoll
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

Retrieving payloads for terms matched by a query

2009-05-21 Thread Dmitri Bichko
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()