Code cleanup
This commit is contained in:
parent
8a657b4f1d
commit
5155fc6c10
@ -44,11 +44,11 @@ public class CountMultiSearcher implements MultiSearcher {
|
|||||||
LLUtils.ensureBlocking();
|
LLUtils.ensureBlocking();
|
||||||
if (queryParams2.isSorted() && queryParams2.limitLong() > 0) {
|
if (queryParams2.isSorted() && queryParams2.limitLong() > 0) {
|
||||||
throw new UnsupportedOperationException(
|
throw new UnsupportedOperationException(
|
||||||
"Sorted queries are not supported" + " by SimpleUnsortedUnscoredLuceneMultiSearcher");
|
"Sorted queries are not supported by SimpleUnsortedUnscoredLuceneMultiSearcher");
|
||||||
}
|
}
|
||||||
if (queryParams2.needsScores() && queryParams2.limitLong() > 0) {
|
if (queryParams2.needsScores() && queryParams2.limitLong() > 0) {
|
||||||
throw new UnsupportedOperationException(
|
throw new UnsupportedOperationException(
|
||||||
"Scored queries are not supported" + " by SimpleUnsortedUnscoredLuceneMultiSearcher");
|
"Scored queries are not supported by SimpleUnsortedUnscoredLuceneMultiSearcher");
|
||||||
}
|
}
|
||||||
}).thenMany(Flux.fromIterable(indexSearchers.shards())).flatMap(searcher -> {
|
}).thenMany(Flux.fromIterable(indexSearchers.shards())).flatMap(searcher -> {
|
||||||
var llSearcher = Mono.fromCallable(() -> new LLIndexSearcher(searcher, false, null).send());
|
var llSearcher = Mono.fromCallable(() -> new LLIndexSearcher(searcher, false, null).send());
|
||||||
|
Loading…
Reference in New Issue
Block a user