From 07d4166715a949460d388f7951c9023da681b456 Mon Sep 17 00:00:00 2001 From: kimchy Date: Tue, 23 Feb 2010 22:04:10 +0200 Subject: [PATCH] removed unused field --- .../index/query/support/MapperQueryParser.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/support/MapperQueryParser.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/support/MapperQueryParser.java index 3852c9fac59..c668c8971ec 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/support/MapperQueryParser.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/support/MapperQueryParser.java @@ -37,9 +37,6 @@ import static org.elasticsearch.index.query.support.QueryParsers.*; * A query parser that uses the {@link MapperService} in order to build smarter * queries based on the mapping information. * - *

Maps a logic name of a field {@link org.elasticsearch.index.mapper.FieldMapper#name()} - * into its {@link org.elasticsearch.index.mapper.FieldMapper#indexName()}. - * *

Also breaks fields with [type].[name] into a boolean query that must include the type * as well as the query on the name. * @@ -61,7 +58,6 @@ public class MapperQueryParser extends QueryParser { } @Override protected Query getFieldQuery(String field, String queryText) throws ParseException { - String indexedNameField = field; if (mapperService != null) { MapperService.SmartNameFieldMappers fieldMappers = mapperService.smartName(field); if (fieldMappers != null) { @@ -71,7 +67,7 @@ public class MapperQueryParser extends QueryParser { } } } - return super.getFieldQuery(indexedNameField, queryText); + return super.getFieldQuery(field, queryText); } @Override protected Query getRangeQuery(String field, String part1, String part2, boolean inclusive) throws ParseException {