-
-
Save kbachl/b373610376324745ce3c to your computer and use it in GitHub Desktop.
Query is ok but will return null!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"filtered":{ | |
"query":{ | |
"query_string":{ | |
"query":"*" | |
} | |
}, | |
"filter":{ | |
"term":{ | |
"field":"Val1" | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SearchSourceBuilder cBuilder = SearchSourceBuilder.searchSource(); | |
cBuilder.query(QueryBuilders.queryString("*") | |
.defaultOperator(QueryStringQueryBuilder.Operator.OR) | |
.useDisMax(true)); | |
cBuilder.filter(FilterBuilders.termFilter("field", "Val1")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment