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:
Alan Woodward 2015-09-14 09:10:26 +00:00
parent 22cc3a1560
commit 13a64196d0
1 changed files with 1 additions and 2 deletions
lucene/core/src/java/org/apache/lucene/search/payloads

View File

@ -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(")");