Package org.apache.lucene.queries.payloads
package org.apache.lucene.queries.payloads
The payloads package provides Query mechanisms for finding and using payloads.
The following Query implementations are provided:
PayloadScoreQuery
-- For all terms matched by a SpanQuery, boost the score based on the value of the payload located at those terms.
-
ClassDescriptionCalculate the final score as the average score of all payloads seen.Returns the maximum payload score seen, else 1 if there are no payloads on the doc.Calculates the minimum payload seenDefines a way of converting payloads to float values, for use by
PayloadScoreQuery
An abstract class that defines a way for PayloadScoreQuery instances to transform the cumulative effects of payload scores for a document.Defines an interface for testing if two payloads should be consider to matchCreates a payload matcher object based on a payload type and an operation.A Query class that uses aPayloadFunction
to modify the score of a wrapped SpanQueryOnly return those matches that have a specific payload at the given position.The payload type.The payload type.Calculate the final score as the sum of scores of all payloads seen.