Hello guys,
If I want to filter results from an elasticsearch type, do I need to match all of them first like this :
"query": {
"bool": {
"must": {
"match_all": {}
},
"filter": {
"term": {
"status": "active"
}
}
}
}
}
Or I can just filter them directly ?
"query": {
"bool": {
"filter": {
"term": {
"status": "active"
}
}
}
}
}