lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabiano Nunes <fabi...@nunes.me>
Subject PayloadSpanUtil and unstored fields.
Date Wed, 01 Dec 2010 12:15:33 GMT
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<byte[]> tests = psu.getPayloadsForQuery(query);
Assert.assertTrue((tests.size() > 0)); // <------- tests is always 0 if the
field is Field.Store.NO

Thanks.

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