Accept `defaultOperator` in addition to `default_operator` for simple_query_string

This commit is contained in:
Lee Hinman 2014-01-21 15:51:06 -07:00
parent 1047267021
commit 2f910fbf7e
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ public class SimpleQueryStringParser implements QueryParser {
}
} else if ("field".equals(currentFieldName)) {
field = parser.text();
} else if ("default_operator".equals(currentFieldName)) {
} else if ("default_operator".equals(currentFieldName) || "defaultOperator".equals(currentFieldName)) {
String op = parser.text();
if ("or".equalsIgnoreCase(op)) {
defaultOperator = BooleanClause.Occur.SHOULD;