lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Elschot (JIRA)" <>
Subject [jira] [Commented] (LUCENE-2454) Nested Document query support
Date Thu, 26 May 2011 10:57:54 GMT


Paul Elschot commented on LUCENE-2454:

I see no test cases for required terms in a nested document.
This may be non trivial in that advance() should advance into the first doc of the nested
For example, assume the parents p1 and p2 are the first docs in the nested docs, and that
the query
requires a and b to be present:
0   p1
1   a
2   b
3   p2
4   b
5   a
In this situation, p2 may be missed when advance() on a required scorer for "b" is given docId
5 (containing "a")
as a target. It should be given target docId 3 to advance into the nested doc p2 containing

I quickly read the code here, but I could not easily determine whether this is done correctly
or not.
Shall I add a test case here, or would it be better to open another issue after this one is
closed, or can someone reassure me that this is not in an issue?

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