Open AbhiAgarwal opened 7 years ago
OR:
doesn't work, but something similar should work:
{
"query": {
"bool": {
"must": [{
"term": {
"data.CreatedBy": 5749563331706880
}
}],
"filter": [{
"match": {
"data.Tags": "Mobile"
}
},{
"match": {
"data.Tags": "TechCrunch"
}
}]
}
},
"size": 50,
"from": 0
}
filtered queries also work well:
purely these:
{
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"bool": {
"should": [
{
"term": {
"name": "xyz"
}
},
{
"term": {
"description": "xyz"
}
}
]
}
}
}
}`
AND:
multiple match queries