diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-09-21 11:30:07 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-09-26 10:26:48 +0000 |
commit | 5f2a7f71fef7d37676cd22aab2373834a323e0c3 (patch) | |
tree | 1f993939de0c7aaf7cdbe44e3df8e487111a2320 /searchcore | |
parent | 589f8faf81c9ed1ace32ffb67653d2bc9b95cc51 (diff) |
Check for soft doom before doing potentially expensive initRange
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp b/searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp index b57346611f1..1111fd1a1b7 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/match_thread.cpp @@ -332,6 +332,7 @@ MatchThread::findMatches(MatchTools &tools) } HitCollector hits(matchParams.numDocs, matchParams.arraySize); trace->addEvent(4, "Start match and first phase rank"); + if (tools.getDoom().soft_doom()) return 0; match_loop_helper(tools, hits); if (tools.has_second_phase_rank()) { trace->addEvent(4, "Start second phase rerank"); |