Nested search in multiIndex approach

Hi,

i am trying to get the nested value in multi indices approach.

used below query but didn't help. please advise.

GET _all,/_search
{
"query": {
"bool": {
"should": [
{
"nested": {
"path": "_index.student_object.student_object_data",
"query": {
"match": {
"subjectId": "3"
}
}
},
"bool": {

        "filter": [
          {
            "terms": {
              "_index": [
                "student_object"
              ]
            }
          }
        ]
      }
    }
  ]
}

}
}

Hi @Muna,

It's a bit hard to know what went wrong without an error message but my guess is you need to use ignore_unmapped setting https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-nested-query.html.

1 Like

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