From 7082593166bade7eb420279bede3176a947fed1c Mon Sep 17 00:00:00 2001 From: kimchy Date: Thu, 28 Oct 2010 23:18:24 +0200 Subject: [PATCH] add term filter toString --- .../org/elasticsearch/common/lucene/search/TermFilter.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/common/lucene/search/TermFilter.java b/modules/elasticsearch/src/main/java/org/elasticsearch/common/lucene/search/TermFilter.java index c6983a3a041..dd4f14d10c4 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/common/lucene/search/TermFilter.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/common/lucene/search/TermFilter.java @@ -76,4 +76,8 @@ public class TermFilter extends Filter { public int hashCode() { return term != null ? term.hashCode() : 0; } + + @Override public String toString() { + return term.field() + ":" + term.text(); + } }