mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-14 17:05:36 +00:00
Accept defaultOperator
in addition to default_operator
for simple_query_string
This commit is contained in:
parent
1047267021
commit
2f910fbf7e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user