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

Mark Harwood commented on LUCENE-2454:
--------------------------------------

Mike - having thought about it moving the per-parent grouping logic to a 
collector removes some of the functionality I am used to.
I often use multiple PerParentLimitedQuery clauses in the same query to limit 
different aspects of the structures I query e.g. for each best parent document 
I may want the best 5 children of type A and the best 10 children of type B. 
Type "A" docs are of a different size and shape to type "B" - hence the need 
for different limits. I realise this can be done with multiple searches using 
different collectors each time but I use distributed servers that service all 
XML-based queries the same way. In these sorts of environments it is desirable 
to maintain a common query API (e.g. the XML syntax) and not introduce the need 
for special collectors to service different types of queries. 

Paul, not sure on the exact details of your query (a parent with a child 
containing A and B or a parent with a child containing A and a potentially 
different child containing B?) I suspect a test case would help.



> 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, 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