Please, ignore this thread.
It's *my misunderstanding* of query.getSpans().
Thanks!
On Wed, Dec 1, 2010 at 10:15 AM, Fabiano Nunes wrote:
> PayloadSpanUtil can't retrieve payloads from unstored fields (
> Field.Store.NO). Since the payloads is stored in terms, why do I need
> store the fields?
Sorry. I'm opening it again.
On Wed, Dec 1, 2010 at 10:18 AM, Fabiano Nunes wrote:
> Please, ignore this thread.
> It's *my misunderstanding* of query.getSpans().
>
> Thanks!
>
> On Wed, Dec 1, 2010 at 10:15 AM, Fabiano Nunes wrote:
>
>> PayloadSpanUtil can't retrieve payloads from unstored fie
PayloadSpanUtil can't retrieve payloads from unstored fields (Field.Store.NO).
Since the payloads is stored in terms, why do I need store the fields?
Example:
PayloadSpanUtil psu = new PayloadSpanUtil(ireader);
Collection tests = psu.getPayloadsForQuery(query);
Assert.assertTrue((tests.size() > 0)