I am using parent-child and the mapping is having the field _parent and I
set parent to actual parent id during indexing.
But the search result returns all the fields except the parent and I also
could not figure out any method to get the parent id.
How should I get a parent id of the child document ?
You can specify the _parent and _source in the fields. It will list the
_parent in the "fields" array in the hit, but the _source will be at it's
normal place in the hit.
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.