Hi,
I am using JAVA API to implement elasticsearch.
I have a nested document in my index. I am trying to perform a terms query on that nested document. But It doesn't give any results.
When I googled it I found the below solution.
When I tried to do "include_in_root": true as shown in the above solution I am getting the below exception.
reason=The mapping definition cannot be nested under a type [_doc] unless include_type_name is set to true.
Is there is any way that I can query the nested documents using terms query.
Thanks,
HarshaYerasi.