What don't you understand specifically? the child_type._parent is the
ability to use type_name.field_name notation. Something like tweet.message
(so the result is automatically filtered to tweet types). The "parent_id" in
question is simply the value of the parent id you want to find childs for.
Wrap it in a term query and execute a search request with it, and you will
get the children of a specific parent.
Can this also be accomplished through a StringQuery? I would like users to be able to find all children with a certain parent (without having to store the parent_id independently). I am not having much luck with a StringQuery "_parent:ID1234567" when applied to the the child_type.
Can you gist a curl recreation of this? It should work.
On Thursday, January 27, 2011 at 8:23 PM, byuva wrote:
Can this also be accomplished through a StringQuery? I would like users to
be able to find all children with a certain parent (without having to store
the parent_id independently). I am not having much luck with a StringQuery
"_parent:ID1234567" when applied to the the child_type.
I have it figured out now. I had been unable to see the actual content of the _parent field (per another thread here) and hadn't realized that the name was slightly mangled (eg "my_parent_type#my_id). My apologies if I missed this in the documentation.
As for matching on _parent field, you can simple do a term query on child_type._parent:parent_id.
On Sunday, January 30, 2011 at 7:49 PM, byuva wrote:
I have it figured out now. I had been unable to see the actual content of
the _parent field (per another thread here) and hadn't realized that the
name was slightly mangled (eg "my_parent_type#my_id). My apologies if I
missed this in the documentation.
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.