Hi,
If i have to use mutliple filters inside a BOOL filter, which one should i use:
{
"filtered": {
"filter": {
"bool": {
"must": [
{
"term": {
"_cache": true,
"tag": "first"
}
},
{
"term": {
"_cache": true,
"tag": "second"
}
}
]
}
}
}
}
OR
{
"filtered": {
"filter": {
"bool": {
"_cache": true,
"must": [
{
"term": {
"tag": "first"
}
},
{
"term": {
"tag": "second"
}
}
]
}
}
}
}
And what are the differences?