From ef577ea43a991b99dd14f5668aadbea8e66795bb Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Thu, 12 Sep 2024 11:23:22 +0100 Subject: [PATCH] PayloadScoreQuery javadoc update w.r.t. SpanQuery use (#13731) --- .../apache/lucene/queries/payloads/PayloadScoreQuery.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lucene/queries/src/java/org/apache/lucene/queries/payloads/PayloadScoreQuery.java b/lucene/queries/src/java/org/apache/lucene/queries/payloads/PayloadScoreQuery.java index 7c4541027791..72d6622b4e30 100644 --- a/lucene/queries/src/java/org/apache/lucene/queries/payloads/PayloadScoreQuery.java +++ b/lucene/queries/src/java/org/apache/lucene/queries/payloads/PayloadScoreQuery.java @@ -39,7 +39,11 @@ import org.apache.lucene.search.ScorerSupplier; 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 { private final SpanQuery wrappedQuery;