Getting entire hierarchy in parent child type

I have a tree like document structure and using parent child mapping. Using
hasChildQuery and hasParentQuery I can get the immediate parent and
children. Does elasticsearch support some filter and/or some querybuilder
combination mechanism for returning entire hierachy i.e. all documents
occur between matching node (at some level) till root node(docment)*

Thanks
*

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No - you'd have to add a field to your doc to allow this, eg a path of all
ancestor IDs: 1/5/10 etc

On 22 May 2013 10:07, Chetana ambha.career@gmail.com wrote:

I have a tree like document structure and using parent child mapping.
Using hasChildQuery and hasParentQuery I can get the immediate parent and
children. Does elasticsearch support some filter and/or some querybuilder
combination mechanism for returning entire hierachy i.e. all documents
occur between matching node (at some level) till root node(docment)*

Thanks
*

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.