I'm facing a strange issue when performing a search on an nested field on multiple indexes, multiple document types.
First of all, we are working on elasticsearch 1.7.3.
My search is on two indexes, which each have one distinct document type inside.
My nested field is declared only in one of the two document type mapping.
The request returns a QueryParsingException telling "[indexname] [nested] failed to find nested object under path [xyz]]"", only for the index which contains the document type without the nested field.
If I execute my search request only on the index which contains the document type with the nested field, everything works as expected. So this does not seems like a query syntax error.
If I execute a search on the same two indexes, on a field defined only in one of the two document type, but which is not of nested type, everything works as expected.
Compared to the other queries the nested query is strict when it comes to the existence of a nested field in the mapping and like you're saying it we fail with an error if no nested field can be found.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.