lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Atri Sharma (JIRA)" <>
Subject [jira] [Commented] (LUCENE-8749) Proposal: Pluggable Interface for Slice Allocation Algorithm
Date Sun, 07 Apr 2019 08:39:00 GMT


Atri Sharma commented on LUCENE-8749:

Agreed, a better IndexSearcher#slices implementation would definitely help.


However, I believe that the ability to customize the method through an external object allows
a user more granular control over the slice allocation algorithm. Two users might have wildly
different parameters on which they want to allocate slices, so drawing a best fit algorithm
for both of them might be hard.


I believe that having both the functionalities is a good idea. I am happy to open another Jira
for tracking efforts on a better default slice allocation algorithm.



> Proposal: Pluggable Interface for Slice Allocation Algorithm
> ------------------------------------------------------------
>                 Key: LUCENE-8749
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/search
>            Reporter: Atri Sharma
>            Priority: Major
> The slice allocation method allocates one thread per segment today. If a user wishes
to use a different slice allocation algorithm, there is no way except to make a change in
IndexSearcher. This Jira proposes an interface to decouple the slice allocation mechanism
from IndexSearcher and allow plugging in the method from an external factory (like Collectors).

This message was sent by Atlassian JIRA

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

View raw message