Subscribe to the correct scheduler

This commit is contained in:
Andrea Cavalli 2022-04-01 15:15:06 +02:00
parent cd26cf61b7
commit c2d3f79a08

View File

@ -78,7 +78,9 @@ public class StandardSearcher implements MultiSearcher {
} else {
return TopScoreDocCollector.createSharedManager(queryParams.limitInt(), null, totalHitsThreshold);
}
}).flatMap(sharedManager -> Flux.fromIterable(indexSearchers).<TopDocsCollector<?>>handle((shard, sink) -> {
})
.subscribeOn(uninterruptibleScheduler(Schedulers.boundedElastic()))
.flatMap(sharedManager -> Flux.fromIterable(indexSearchers).<TopDocsCollector<?>>handle((shard, sink) -> {
LLUtils.ensureBlocking();
try {
var collector = sharedManager.newCollector();