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

Paul Elschot edited comment on LUCENE-2454 at 6/18/11 11:39 AM:
----------------------------------------------------------------

One of the nocommits in the patch is about the use of an Filter for the parent 
filter.
NesteDocumentQuery uses an OpenBitSet from this Filter for next() and advance() 
just like a Filter and also as a parent filter.

So how about adding sth like this:

{code}
public abstract class ParentFilter {
  public abstract ParentDISI getParentDISI(IndexReader reader);
}

public class ParentDISI extends DocIdSetIterator {
  public int getParent(); // to be used only after next() or advance() returned 
<> NO_MORE_DOCS
}

{code}

together with another constructor for NestedDocumentQuery with a ParentFilter 
argument?


      was (Author: paul.elsc...@xs4all.nl):
    One of the nocommits in the patch is about the use of an Filter for the 
parent filter.
NesteDocumentQuery uses an OpenBitSet from this Filter for next() and advance() 
just like a Filter and also as a parent filter.

So how about adding sth like this:

{code}
public abstract class ParentFilter {
  public abstract ParentDISI getParentDISI(IndexReader reader);
}

public class ParentDISI extends DocIdSetIterator {
  public int getParent(); // to be used only after next() or advance() returned 
<> NO_MORE_DOCS
}

{code}

together with another constructor for NestedDocumentIterator with a 
ParentFilter argument?

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

Reply via email to