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

Otis Gospodnetic commented on LUCENE-730:
-----------------------------------------

Paul, what is special about the number 32 here (BooleanScorer2):

+    if ((requiredScorers.size() == 0) &&
+        prohibitedScorers.size() < 32) {
+      // fall back to BooleanScorer, scores documents somewhat out of order
+      BooleanScorer bs = new BooleanScorer(getSimilarity(), minNrShouldMatch);

Why can we use BooleanScorer if there are less than 32 prohibited clauses, but 
not otherwise?  Thanks.


> Restore top level disjunction performance
> -----------------------------------------
>
>                 Key: LUCENE-730
>                 URL: https://issues.apache.org/jira/browse/LUCENE-730
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Search
>            Reporter: Paul Elschot
>            Priority: Minor
>         Attachments: TopLevelDisjunction20061127.patch
>
>
> This patch restores the performance of top level disjunctions. 
> The introduction of BooleanScorer2 had impacted this as reported
> on java-user on 21 Nov 2006 by Stanislav Jordanov.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to