Is possible to nested query add name index when searching across multiple indexes ?
I have this question:
query: {
bool: {
should: [
{
filter: {
term: {
_index: "index1"
}
},
bool: {
must: {
//...
}
},
},
{
bool: {
filter: {
term: {
_index: "index2"
}
},
must: {
nested: {
path: "nest",
query: {
bool: {
must: [
{
term: {
'nest.field': '....'
}
}
]
}
}
}
}
}
}
]
}
}