Subscribe correctly

This commit is contained in:
Andrea Cavalli 2022-04-01 20:05:00 +02:00
parent c2d3f79a08
commit c4e696f359

View File

@ -42,7 +42,6 @@ public class CountMultiSearcher implements MultiSearcher {
return queryParamsMono.flatMap(queryParams2 -> LLUtils.usingSendResource(indexSearchersMono, indexSearchers -> {
var localQueryParams = getLocalQueryParams(queryParams2);
return Mono.fromRunnable(() -> {
LLUtils.ensureBlocking();
if (queryParams2.isSorted() && queryParams2.limitLong() > 0) {
throw new UnsupportedOperationException(
"Sorted queries are not supported by SimpleUnsortedUnscoredLuceneMultiSearcher");