Using this example i'm well indexing an array of attachments,
When i query the index i get as result the full document, how can i know in wich attachment is the queried text..?? This is needed because i store the original document outside of elastic and i need get the full path of it.
Tnx David as suggested i've adapted the mapping to an array of nested documents and queried it with the nested query syntax with hinner_hits and hilight is exactly what i need..!!
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.