Do you know how use multi match query with nested object in cross_fields type,
by example i wouldlike to get one document with "shakespeare romeo" with this document:
I try to use shoud with on query with nested and an other with no nested query, but with the cross_fields and "and" operator the result is not correct.
With "and" operator and cross_field, it's search with shakespeare and juliette in "title" and shakespeare and juliette in "author.name". The two words is not in the two subquery of should. And if I change operator "and" to "or", if i search skakespeare and brian , it return my document but shakespeare is correct and brian not.
It's not work if the type for author is specified by "nested" type.
How adapt the query for works with nested and not nested fields in cross_field mode?
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.