summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2021-02-24 14:49:14 +0100
committerGitHub <noreply@github.com>2021-02-24 14:49:14 +0100
commit38beecb43c8dfc15af8f3b14a62ee29430689713 (patch)
tree48a155a6975eeb4821197fe55377f5452f7d43cb
parent3e0954075fde4f01717c9a9e987231af95812a31 (diff)
parente539ff847c8853a5bd42a3b3c8f4a66d01ca4685 (diff)
Merge pull request #16653 from vespa-engine/arnej/expect-distance-threshold-always
expect QRS to always send distance threshold
-rw-r--r--searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.cpp b/searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.cpp
index ce24de02281..9b0196f4f29 100644
--- a/searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.cpp
+++ b/searchlib/src/vespa/searchlib/parsequery/stackdumpiterator.cpp
@@ -273,13 +273,10 @@ SimpleQueryStackDumpIterator::next()
_extraIntArg1 = readCompressedPositiveInt(p); // targetNumHits
_extraIntArg2 = readCompressedPositiveInt(p); // allow_approximate
_extraIntArg3 = readCompressedPositiveInt(p); // explore_additional_hits
- if ((_extraIntArg2 & 0x40) != 0) {
- _extraIntArg2 &= ~0x40;
- // in some later release, do this always:
- _extraDoubleArg4 = read_double(p); // distance threshold
- } else {
- _extraDoubleArg4 = std::numeric_limits<double>::max();
- }
+ // XXX: remove later when QRS doesn't send this extra flag
+ _extraIntArg2 &= ~0x40;
+ // QRS always sends this now:
+ _extraDoubleArg4 = read_double(p); // distance threshold
_currArity = 0;
} catch (...) {
return false;