Package org.apache.lucene.search.payloads

The payloads package provides Query mechanisms for finding and using payloads.

The following Query implementations are provided:

  1. PayloadTermQuery -- Boost a term's score based on the value of the payload located at that term.
  2. PayloadNearQuery -- A SpanNearQuery that factors in the value of the payloads located at each of the positions where the spans occur.