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

Robert Muir updated LUCENE-4236:
--------------------------------

    Attachment: LUCENE-4236.patch

Updated patch... I tried to speed up BS2 some more here in this patch:
{noformat}
               Task   QPS trunkStdDev trunk   QPS patchStdDev patch      Pct 
diff
             Respell       76.69        1.75       74.06        1.36   -7% -    
0%
          AndHighMed       89.69        1.85       86.70        2.83   -8% -    
1%
            SpanNear        2.75        0.09        2.70        0.07   -7% -    
4%
              Fuzzy2       34.94        0.66       34.46        0.54   -4% -    
2%
              Fuzzy1      115.28        2.24      113.81        1.59   -4% -    
2%
         AndHighHigh       12.97        0.27       12.84        0.34   -5% -    
3%
        TermBGroup1M       47.87        0.27       47.42        0.51   -2% -    
0%
      TermBGroup1M1P       53.84        1.08       53.35        0.81   -4% -    
2%
         TermGroup1M       42.55        0.51       42.36        0.56   -2% -    
2%
            PKLookup      298.51        0.80      297.81        2.68   -1% -    
0%
            Wildcard       20.66        1.13       20.75        1.09   -9% -   
11%
              Phrase        6.64        0.26        6.67        0.31   -7% -    
9%
             Prefix3       32.82        1.69       33.07        1.72   -9% -   
11%
        SloppyPhrase       26.12        0.38       26.46        0.42   -1% -    
4%
              IntNRQ       11.24        1.55       11.39        1.38  -21% -   
31%
                Term      138.34        0.93      141.27        8.71   -4% -    
9%
          OrHighHigh        7.28        0.38        7.71        0.50   -5% -   
19%
           OrHighMed       20.29        1.21       21.81        1.61   -6% -   
22%
{noformat}

It could use some code comments and cleanup but its time for a break :)
                
> clean up booleanquery conjunction optimizations a bit
> -----------------------------------------------------
>
>                 Key: LUCENE-4236
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4236
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Robert Muir
>             Fix For: 4.0, 5.0
>
>         Attachments: LUCENE-4236.patch, LUCENE-4236.patch, LUCENE-4236.patch, 
> LUCENE-4236.patch
>
>
> After LUCENE-3505, I want to do a slight cleanup:
> * compute the term conjunctions optimization in scorer(), so its applied even 
> if we have optional and prohibited clauses that dont exist in the segment 
> (e.g. return null)
> * use the term conjunctions optimization when optional.size() == 
> minShouldMatch, as that means they are all mandatory, too.
> * don't return booleanscorer1 when optional.size() == minShouldMatch, because 
> it means we have required clauses and in general BS2 should do a much better 
> job (e.g. use advance).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to