I have this request :
curl -XGET localhost:9200/users/_search -d '
{
"query": {
"filtered": {
"query": {"match_all": {}},
"filter": {
"nested": {
"path": "apps_events",
"query":{
"filtered": {
"query": { "match_all": {}},
"filter": {
"and": [
{"term": {"apps_events.status": "active"}},
{"terms": {"apps_events.type": ["sale"]}}
]
}
}
}
}
}
}
}
}'
I don't succeed to convert it into Tire (rails gem) language... I don't find in Tire tests any example of nested with filters...
Any ideas?