Re: ToParentBlockJoinQuery and grand-children

2012-05-25 Thread Christoph Kaser
Hi Mike, unfortunately, you were right about only getting the last child's grandchildren. Furthermore, the groups have wrong groupValues: They are the document id of the previous parent, not the child. I have opened an issue: https://issues.apache.org/jira/browse/LUCENE-4076 I also created

Re: ToParentBlockJoinQuery and grand-children

2012-05-24 Thread Michael McCandless
On Thu, May 24, 2012 at 11:48 AM, Christoph Kaser wrote: > thank you for your response. Unfortunately, I won't be able to try this > today, but I should be able to try it in the next few days. If I find the > bug you described, I will open an issue. Thanks! > On a somewhat related note, is ther

Re: ToParentBlockJoinQuery and grand-children

2012-05-24 Thread Christoph Kaser
Hello Mike, thank you for your response. Unfortunately, I won't be able to try this today, but I should be able to try it in the next few days. If I find the bug you described, I will open an issue. On a somewhat related note, is there a way to get the scores for the parent documents from th

Re: ToParentBlockJoinQuery and grand-children

2012-05-23 Thread Michael McCandless
You do have to call getTopGroups for each grandchild query, and the order should match the TopGroups you got for the children However looking at the code, I suspect there's a bug... by the time the collector collects the parent hit, some of the grand children will have been discarded. I susp

ToParentBlockJoinQuery and grand-children

2012-05-23 Thread Christoph Kaser
Hello, I would like to use the ToParentBlockJoinQuery and its collector to query a document with children and grand children, but I can't figure out how to get the document ids that represent grand children. I know how to build the query and get the parent and child documents: /Example