I'm trying to create parent/child relationships between documents that are
all of the same type. This seems to be working OK, except that to enable
routing, I have to give "top-level" docs a bogus parent (currently ID 0):
https://gist.github.com/mmoffitt/9144694
Can I somehow omit parent and have it use the child's ID instead? More
importantly, are there more serious problems here, since each child's
parent will be routed based the grandparent's ID (and not its own)?
BTW, i will suggest you to avoid using parent/child relationships if your
index contains more than million documents per shard
besides the obvious problems with maintaining parent/child/grandchild
relationships, parent/child queries tend to be quite slow and id_cache
(used to store parent/child ids) will consume a lot of java heap space
On Friday, February 21, 2014 10:22:05 PM UTC, Michael D. Moffitt wrote:
Hello,
I'm trying to create parent/child relationships between documents that are
all of the same type. This seems to be working OK, except that to enable
routing, I have to give "top-level" docs a bogus parent (currently ID 0):
https://gist.github.com/mmoffitt/9144694
Can I somehow omit parent and have it use the child's ID instead? More
importantly, are there more serious problems here, since each child's
parent will be routed based the grandparent's ID (and not its own)?
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.