Subscribe to the correct scheduler
This commit is contained in:
parent
cd26cf61b7
commit
c2d3f79a08
@ -78,7 +78,9 @@ public class StandardSearcher implements MultiSearcher {
|
|||||||
} else {
|
} else {
|
||||||
return TopScoreDocCollector.createSharedManager(queryParams.limitInt(), null, totalHitsThreshold);
|
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();
|
LLUtils.ensureBlocking();
|
||||||
try {
|
try {
|
||||||
var collector = sharedManager.newCollector();
|
var collector = sharedManager.newCollector();
|
||||||
|
Loading…
Reference in New Issue
Block a user