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

Mark Harwood commented on LUCENE-3133:
--------------------------------------

bq.  I wonder if LUCENE-2454 could be extended to allow recursive 
ChildDocumentQuery 

No need to extend. This can be done today by nesting a NestedDocumentQuery 
inside another.
The only thing you need to do is set the "ParentsFilter" to roll up results to 
the appropriate point e.g. parent/child/grandchild

bq. is there a "normal" use case where you would want to put same field name on 
both parent & child docs?

I wouldn't want to rule that possibility out e.g. a person has a name and age 
and their sons and daughters have names and ages too.



> Fix QueryParser to handle nested fields
> ---------------------------------------
>
>                 Key: LUCENE-3133
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3133
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>             Fix For: 3.2, 4.0
>
>
> Once we commit LUCENE-2454, we need to make it easy for apps to enable this 
> with QueryParser.
> It seems like it's a "schema" like behavior, ie we need to be able to express 
> the join structure of the related fields.
> And then whenever QP produces a query that spans fields requiring a join, the 
> NestedDocumentQuery is used to wrap the child fields?

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