Filtering the output columns in multi index search query

Hi,

we are trying to get the specific field of source [output columns] for specific indices for the multi index search query . applying '_source' at route level is not working . please advise how to get this.

GET language,country/_search
{
"aggs": {"language,country,": {
"terms": {
"field": "{_index}"
}
}
},
"query": {
"bool": {
"should": [
{
"bool": {
"filter": [
{
"terms": {
"_index": [
"language"
]
}
}
]
}
},
{
"bool": {
"filter": [
{
"terms": {
"_index": [
"country"
]
}
}
]
}
}
]
}
}
}

here i want to filter in such a way that i can get only few fields from country index.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.