delete SimpleQueryStringParser.NAME constant
Previously restored this constant due to a bad merge, fixed now
This commit is contained in:
parent
e2181990c4
commit
d088d5a3b4
|
@ -61,8 +61,6 @@ import java.util.Map;
|
||||||
*/
|
*/
|
||||||
public class SimpleQueryStringParser extends BaseQueryParser {
|
public class SimpleQueryStringParser extends BaseQueryParser {
|
||||||
|
|
||||||
public static final String NAME = "simple_query_string";
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public SimpleQueryStringParser() {
|
public SimpleQueryStringParser() {
|
||||||
|
|
||||||
|
@ -116,7 +114,7 @@ public class SimpleQueryStringParser extends BaseQueryParser {
|
||||||
fieldsAndWeights.put(fField, fBoost);
|
fieldsAndWeights.put(fField, fBoost);
|
||||||
}
|
}
|
||||||
} else {
|
} 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()) {
|
} else if (token.isValue()) {
|
||||||
if ("query".equals(currentFieldName)) {
|
if ("query".equals(currentFieldName)) {
|
||||||
|
|
Loading…
Reference in New Issue