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.
Thanks in advance for any help,