I am sending a nested bool filter to my cluster and the order in which each filter executes is very important. From what I understand the filter that comes first should be executed first but that doesn't seem to be what is happening when I execute my query:
"query" : {
"filtered" : {
"filter" : {
"bool" : {
"must" : [ {
"bool" : {
"should" : [ {
"term" : {
"category" : 64
}
}, {
"term" : {
"category" : 65
}
} ]
}
}, {
"term" : {
"identity" : 25914331
}
}, {
"range" : {
"timestamp" : {
"from" : 1440057600000,
"to" : 1440071999999,
"include_lower" : true,
"include_upper" : true
}
}
} ]
}
}
}
}
}
I need the nested bool on the "category" field to execute first, though I am not sure this is what is actually happening. Any insight would be greatly appreciated.
Thank,
Harlin