mirror of https://github.com/apache/lucene.git
LUCENE-6716: Better toString() for SpanPayloadCheckQuery
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1702877 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
22cc3a1560
commit
13a64196d0
lucene/core/src/java/org/apache/lucene/search/payloads
|
@ -37,7 +37,6 @@ import org.apache.lucene.search.spans.SpanScorer;
|
|||
import org.apache.lucene.search.spans.SpanWeight;
|
||||
import org.apache.lucene.search.spans.Spans;
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.ToStringUtils;
|
||||
|
||||
/**
|
||||
* Only return those matches that have a specific payload at the given position.
|
||||
|
@ -165,7 +164,7 @@ public class SpanPayloadCheckQuery extends SpanQuery {
|
|||
buffer.append(match.toString(field));
|
||||
buffer.append(", payloadRef: ");
|
||||
for (BytesRef bytes : payloadToMatch) {
|
||||
buffer.append(bytes.utf8ToString());
|
||||
buffer.append(Term.toString(bytes));
|
||||
buffer.append(';');
|
||||
}
|
||||
buffer.append(")");
|
||||
|
|
Loading…
Reference in New Issue