Hi
I'm trying to implement multiple filters inside one query with Ruby DSL API, but couldn't figure out how to do it from the documentation. Since "filtered" queries are removed since ES 2.0 I have to use the "boolean" query as I understood, but there is no proper example.
I'm basically trying to create this query through Ruby DSL:
{
"query" : {
"bool": {
"filter" : [
{ "term" : {"DestWeather": "Rain"}},
{ "range": { "timestamp": { "gte": "now-100d" } } }
]
}
}
}