[ 
https://issues.apache.org/jira/browse/LUCENE-2454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052696#comment-13052696
 ] 

Michael McCandless commented on LUCENE-2454:
--------------------------------------------

bq. I think the only thing 3171 may be missing from my original use cases then 
is that I can use multiple PerParentLimitedQueries in one query to get a limit 
of children of different types e.g. for each parent resume, max 10 results from 
"employment detail" children and max 10 results from "education background" 
children.

I think LUCENE-3171 can handle this, or something very similar: the
collector tracks all of the BlockJoinQuerys involved in the top query.

So, you'd have 1 BJQ matching "employment detail" child docs and
another matching "education bg" child docs.  The BJC collects the
top parent docs, then you can retrieve separate TopGroups for each
BJQ.

In the end you have a TopGroups for the "employment detail" child docs
and another TopGroups for the "education bg" child docs.

Could that work for your use case?


> Nested Document query support
> -----------------------------
>
>                 Key: LUCENE-2454
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2454
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: core/search
>    Affects Versions: 3.0.2
>            Reporter: Mark Harwood
>            Assignee: Mark Harwood
>            Priority: Minor
>         Attachments: LUCENE-2454.patch, LUCENE-2454.patch, 
> LuceneNestedDocumentSupport.zip
>
>
> A facility for querying nested documents in a Lucene index as outlined in 
> http://www.slideshare.net/MarkHarwood/proposal-for-nested-document-support-in-lucene

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to