Fix pq bug
This commit is contained in:
parent
69c28b92d0
commit
8b6f1dfe87
|
@ -74,7 +74,7 @@ public class AdaptiveLocalSearcher implements LocalSearcher {
|
||||||
return countSearcher.collect(indexSearcherMono, queryParams, keyFieldName, transformer);
|
return countSearcher.collect(indexSearcherMono, queryParams, keyFieldName, transformer);
|
||||||
} else if (!FORCE_HUGE_PQ && realLimit <= maxInMemoryResultEntries) {
|
} else if (!FORCE_HUGE_PQ && realLimit <= maxInMemoryResultEntries) {
|
||||||
return standardSearcher.collect(indexSearcherMono, queryParams, keyFieldName, transformer);
|
return standardSearcher.collect(indexSearcherMono, queryParams, keyFieldName, transformer);
|
||||||
} else if (FORCE_HUGE_PQ || queryParams.isSorted()) {
|
} else if (queryParams.isSorted()) {
|
||||||
if (!FORCE_HUGE_PQ && realLimit <= maxAllowedInMemoryLimit) {
|
if (!FORCE_HUGE_PQ && realLimit <= maxAllowedInMemoryLimit) {
|
||||||
return scoredPaged.collect(indexSearcherMono, queryParams, keyFieldName, transformer);
|
return scoredPaged.collect(indexSearcherMono, queryParams, keyFieldName, transformer);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -67,7 +67,7 @@ public class AdaptiveMultiSearcher implements MultiSearcher {
|
||||||
return count.collectMulti(indexSearchers, queryParams, keyFieldName, transformer);
|
return count.collectMulti(indexSearchers, queryParams, keyFieldName, transformer);
|
||||||
} else if (!FORCE_HUGE_PQ && realLimit <= maxInMemoryResultEntries) {
|
} else if (!FORCE_HUGE_PQ && realLimit <= maxInMemoryResultEntries) {
|
||||||
return standardSearcher.collectMulti(indexSearchers, queryParams, keyFieldName, transformer);
|
return standardSearcher.collectMulti(indexSearchers, queryParams, keyFieldName, transformer);
|
||||||
} else if (FORCE_HUGE_PQ || queryParams.isSorted()) {
|
} else if (queryParams.isSorted()) {
|
||||||
if (!FORCE_HUGE_PQ && realLimit <= maxAllowedInMemoryLimit) {
|
if (!FORCE_HUGE_PQ && realLimit <= maxAllowedInMemoryLimit) {
|
||||||
return scoredPaged.collectMulti(indexSearchers, queryParams, keyFieldName, transformer);
|
return scoredPaged.collectMulti(indexSearchers, queryParams, keyFieldName, transformer);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user