Allow sorted/scored counting
This commit is contained in:
parent
b77b441515
commit
d4c977047c
@ -27,11 +27,11 @@ public class SimpleUnsortedUnscoredLuceneMultiSearcher implements LuceneMultiSea
|
|||||||
var indexSearchersResource = Mono
|
var indexSearchersResource = Mono
|
||||||
.fromRunnable(() -> {
|
.fromRunnable(() -> {
|
||||||
LLUtils.ensureBlocking();
|
LLUtils.ensureBlocking();
|
||||||
if (queryParams.isSorted()) {
|
if (queryParams.isSorted() && queryParams.limit() > 0) {
|
||||||
throw new UnsupportedOperationException("Sorted queries are not supported"
|
throw new UnsupportedOperationException("Sorted queries are not supported"
|
||||||
+ " by SimpleUnsortedUnscoredLuceneMultiSearcher");
|
+ " by SimpleUnsortedUnscoredLuceneMultiSearcher");
|
||||||
}
|
}
|
||||||
if (queryParams.isScored()) {
|
if (queryParams.isScored() && queryParams.limit() > 0) {
|
||||||
throw new UnsupportedOperationException("Scored queries are not supported"
|
throw new UnsupportedOperationException("Scored queries are not supported"
|
||||||
+ " by SimpleUnsortedUnscoredLuceneMultiSearcher");
|
+ " by SimpleUnsortedUnscoredLuceneMultiSearcher");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user