lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Woodward (JIRA)" <>
Subject [jira] [Updated] (LUCENE-7365) Don't use BooleanScorer for small segments
Date Fri, 01 Jul 2016 10:58:11 GMT


Alan Woodward updated LUCENE-7365:
    Attachment: LUCENE-7365.patch

Here's a patch with Adrien's idea, actually including the LinearScoringIndexSearcher class
this time.

> Don't use BooleanScorer for small segments
> ------------------------------------------
>                 Key: LUCENE-7365
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>         Attachments: LUCENE-7365-query.patch, LUCENE-7365.patch, LUCENE-7365.patch, LUCENE-7365.patch
> If a BooleanQuery meets certain criteria (only contains disjunctions, is likely to match
large numbers of docs) then we use a BooleanScorer to score groups of 1024 docs at a time.
 This allocates arrays of 1024 Bucket objects up-front.  On very small segments (for example,
a MemoryIndex) this is very wasteful of memory, particularly if the query is large or deeply-nested.
 We should avoid using a bulk scorer on these segments.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message