lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Harwood (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3133) Fix QueryParser to handle nested fields
Date Tue, 24 May 2011 08:42:47 GMT


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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message