Geo: Fix toString() in GeoDistanceRangeQuery and GeoPolygonQuery

Minor typo in the two queries toString() method. They were former
filters the toString() seems to have been forgotten while renaming.
This commit is contained in:
Christoph Büscher 2015-11-25 18:41:42 +01:00
parent 139d688e24
commit 609d9db470
2 changed files with 2 additions and 2 deletions

View File

@ -206,7 +206,7 @@ public class GeoDistanceRangeQuery extends Query {
@Override
public String toString(String field) {
return "GeoDistanceRangeFilter(" + indexFieldData.getFieldNames().indexName() + ", " + geoDistance + ", [" + inclusiveLowerPoint + " - " + inclusiveUpperPoint + "], " + lat + ", " + lon + ")";
return "GeoDistanceRangeQuery(" + indexFieldData.getFieldNames().indexName() + ", " + geoDistance + ", [" + inclusiveLowerPoint + " - " + inclusiveUpperPoint + "], " + lat + ", " + lon + ")";
}
@Override

View File

@ -103,7 +103,7 @@ public class GeoPolygonQuery extends Query {
@Override
public String toString(String field) {
StringBuilder sb = new StringBuilder("GeoPolygonFilter(");
StringBuilder sb = new StringBuilder("GeoPolygonQuery(");
sb.append(indexFieldData.getFieldNames().indexName());
sb.append(", ").append(Arrays.toString(points)).append(')');
return sb.toString();