mirror of https://github.com/apache/lucene.git
PayloadScoreQuery javadoc update w.r.t. SpanQuery use (#13731)
This commit is contained in:
parent
74e3c44063
commit
ef577ea43a
|
@ -39,7 +39,11 @@ import org.apache.lucene.search.ScoreMode;
|
||||||
import org.apache.lucene.search.ScorerSupplier;
|
import org.apache.lucene.search.ScorerSupplier;
|
||||||
import org.apache.lucene.util.BytesRef;
|
import org.apache.lucene.util.BytesRef;
|
||||||
|
|
||||||
/** A Query class that uses a {@link PayloadFunction} to modify the score of a wrapped SpanQuery */
|
/**
|
||||||
|
* A Query class that uses a {@link PayloadFunction} to modify the score of a wrapped {@link
|
||||||
|
* SpanQuery}. A wrapped span query is used due to the way that payload values are indexed, see
|
||||||
|
* {@link PostingsEnum#PAYLOADS}.
|
||||||
|
*/
|
||||||
public class PayloadScoreQuery extends SpanQuery {
|
public class PayloadScoreQuery extends SpanQuery {
|
||||||
|
|
||||||
private final SpanQuery wrappedQuery;
|
private final SpanQuery wrappedQuery;
|
||||||
|
|
Loading…
Reference in New Issue