Update LLLocalLuceneIndex.java
This commit is contained in:
parent
3366c52b24
commit
c3221a2f46
|
@ -527,13 +527,13 @@ public class LLLocalLuceneIndex implements LLLuceneIndex {
|
|||
keyFieldName,
|
||||
keyScore -> {
|
||||
EmitResult result = topKeysSink.tryEmitNext(fixKeyScore(keyScore, scoreDivisor));
|
||||
if (result.isFailure() && result != EmitResult.FAIL_CANCELLED) {
|
||||
if (result.isFailure() && result != EmitResult.FAIL_CANCELLED && result != EmitResult.FAIL_ZERO_SUBSCRIBER) {
|
||||
throw new EmissionException(result);
|
||||
}
|
||||
},
|
||||
totalHitsCount -> {
|
||||
EmitResult result = totalHitsCountSink.tryEmitValue(totalHitsCount);
|
||||
if (result.isFailure() && result != EmitResult.FAIL_CANCELLED) {
|
||||
if (result.isFailure() && result != EmitResult.FAIL_CANCELLED && result != EmitResult.FAIL_ZERO_SUBSCRIBER) {
|
||||
throw new EmissionException(result);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user