[ 
https://issues.apache.org/jira/browse/LUCENE-6354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mikhail Khludnev updated LUCENE-6354:
-------------------------------------
    Attachment: LUCENE-6354.patch

can we keep {{nextDoc()}} unchanged and keep this predicate in 
{{TwoPhase.matches()}} eg.
{code}
    public TwoPhaseIterator asTwoPhaseIterator() {
      // suppress check on default values
      if(minChildren==1 && maxChildren==Integer.MAX_VALUE){
        return null;
      }else{
        return new TwoPhaseIterator() {
          
          @Override
          public boolean matches() throws IOException {
            return (getChildCount() >= minChildren && getChildCount() <= 
maxChildren);
          }
          
          @Override
          public DocIdSetIterator approximation() {
            return BlockJoinScorer.this;
          }
        };
      }
    }
{code}
?

> Add minChildren and maxChildren options to ToParentBlockJoinQuery
> -----------------------------------------------------------------
>
>                 Key: LUCENE-6354
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6354
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Martijn van Groningen
>         Attachments: LUCENE-6354.patch, LUCENE-6354.patch
>
>
> This effectively allows to ignore parent documents with too few children 
> documents via the minChildren option or too many matching children documents 
> via the maxChildren option. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to