lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] [Commented] (LUCENE-2454) Nested Document query support
Date Tue, 21 Jun 2011 17:39:48 GMT


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

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:
>             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,
> A facility for querying nested documents in a Lucene index as outlined in

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