delete SimpleQueryStringParser.NAME constant

Previously restored this constant due to a bad merge, fixed now
This commit is contained in:
javanna 2015-08-11 13:45:28 +02:00 committed by Luca Cavanna
parent e2181990c4
commit d088d5a3b4
1 changed files with 1 additions and 3 deletions

View File

@ -61,8 +61,6 @@ import java.util.Map;
*/
public class SimpleQueryStringParser extends BaseQueryParser {
public static final String NAME = "simple_query_string";
@Inject
public SimpleQueryStringParser() {
@ -116,7 +114,7 @@ public class SimpleQueryStringParser extends BaseQueryParser {
fieldsAndWeights.put(fField, fBoost);
}
} else {
throw new QueryParsingException(parseContext, "[" + NAME + "] query does not support [" + currentFieldName + "]");
throw new QueryParsingException(parseContext, "[" + SimpleQueryStringBuilder.NAME + "] query does not support [" + currentFieldName + "]");
}
} else if (token.isValue()) {
if ("query".equals(currentFieldName)) {