From 13a64196d0db78450a54448838c448e42a2192e0 Mon Sep 17 00:00:00 2001 From: Alan Woodward Date: Mon, 14 Sep 2015 09:10:26 +0000 Subject: [PATCH] LUCENE-6716: Better toString() for SpanPayloadCheckQuery git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1702877 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/search/payloads/SpanPayloadCheckQuery.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/search/payloads/SpanPayloadCheckQuery.java b/lucene/core/src/java/org/apache/lucene/search/payloads/SpanPayloadCheckQuery.java index a2b4d4c09c8..446f55c9d06 100644 --- a/lucene/core/src/java/org/apache/lucene/search/payloads/SpanPayloadCheckQuery.java +++ b/lucene/core/src/java/org/apache/lucene/search/payloads/SpanPayloadCheckQuery.java @@ -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(")");