We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not support bool query and bool filter?
The text was updated successfully, but these errors were encountered:
That's what I'm seeing, it's not supported. I need to do a query like:
curl -XGET http://localhost:9200/my-index/_search?pretty=true -d '{ "query": { "filtered": { "filter": { "bool": { "must": { "range": { "timestamp": { "gte": "2016/03/28 00:00:00", "lte": "2016/04/11 00:00:00" } } }, "should": [ { "term": { "app": "Foo" } }, { "term": { "app": "Bar" } } ] } } } } }
Looks like I'll be hacking my vendor'd copy of elastigo.
Sorry, something went wrong.
Perhaps my branch has some useful bits for Bool filters: https://github.com/tureus/elastigo
Usage:
filter := es.Filter() rangeFilter := es.Filter().Range("timestamp", startDate, nil, endDate, nil, "") var boolQuery *es.BoolQuery = es.NewBool() boolQuery.Must(rangeFilter).Should(es.Filter().Term("a_property","foo"))
No branches or pull requests
not support bool query and bool filter?
The text was updated successfully, but these errors were encountered: