Is there a difference in terms of performance and cache between nested
query inside bool
query and vice versa?
For example,
{
"query": {
"bool": {
"filter": [
{
"nested": {
"path": "user",
"query": {
"term": {
"user.firstName": "Anton"
}
}
}
}
]
}
}
}
and
{
"query": {
"nested": {
"path": "user",
"query": {
"bool": {
"filter": [
{
"term": {
"user.firstName": "Anton"
}
}
]
}
}
}
}
}