summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <tegge@oath.com>2017-08-24 13:52:19 +0000
committerTor Egge <tegge@oath.com>2017-08-24 14:04:48 +0000
commitb518de1959b98d9b7a977464e7c726e024a3c896 (patch)
tree74718695e53b3117fea8bf086f05f14e3f7dc9b8 /searchlib
parent11a32ac855669152476fc04145f1371ebf4a7701 (diff)
Empty search iterator is strict.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/queryeval/emptysearch.cpp6
-rw-r--r--searchlib/src/vespa/searchlib/queryeval/emptysearch.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/queryeval/emptysearch.cpp b/searchlib/src/vespa/searchlib/queryeval/emptysearch.cpp
index 0ff4de00177..bab047827ad 100644
--- a/searchlib/src/vespa/searchlib/queryeval/emptysearch.cpp
+++ b/searchlib/src/vespa/searchlib/queryeval/emptysearch.cpp
@@ -15,6 +15,12 @@ EmptySearch::doUnpack(uint32_t)
{
}
+EmptySearch::Trinary
+EmptySearch::is_strict() const
+{
+ return Trinary::True;
+}
+
EmptySearch::EmptySearch()
: SearchIterator()
{
diff --git a/searchlib/src/vespa/searchlib/queryeval/emptysearch.h b/searchlib/src/vespa/searchlib/queryeval/emptysearch.h
index c03c533deb1..12d7430922c 100644
--- a/searchlib/src/vespa/searchlib/queryeval/emptysearch.h
+++ b/searchlib/src/vespa/searchlib/queryeval/emptysearch.h
@@ -16,6 +16,7 @@ protected:
SearchIterator::initRange(begin, end);
setAtEnd();
}
+ virtual Trinary is_strict() const override;
public:
EmptySearch();