lucene-dev mailing list archives

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

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

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
doc.
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:
{noformat}
docId
0   p1
1   a
2   b
3   p2
4   b
5   a
{noformat}
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
"a".

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: 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message