2
我有这样的要求:Elasticsearch查询与轮胎
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"]}}
]
}
}
}
}
}
}
}
}'
我没有成功将其转化为轮胎(轨道GEM)的语言...... 我没有在轮胎测试发现嵌套的任何实例带过滤器...
任何想法?