summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-06-08 07:15:26 +0000
committerArne Juul <arnej@verizonmedia.com>2020-06-08 07:15:26 +0000
commit1aa942a132776cbbc24787e68993b90e23ef654d (patch)
treef1a1db093c172ff6c27de1acde7d7ead56ddb1e3 /searchlib
parentaa622a409b6ba44a1b3c9438240b30316fcec149 (diff)
empty blueprint must create empty filter iterator
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.cpp6
-rw-r--r--searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.h5
2 files changed, 8 insertions, 3 deletions
diff --git a/searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.cpp b/searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.cpp
index e605f36c87f..fac6290d3f8 100644
--- a/searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.cpp
+++ b/searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.cpp
@@ -16,6 +16,12 @@ EmptyBlueprint::createLeafSearch(const search::fef::TermFieldMatchDataArray &,
return std::make_unique<EmptySearch>();
}
+SearchIterator::UP
+EmptyBlueprint::createFilterSearch(bool /*strict*/, FilterConstraint /* constraint */) const
+{
+ return std::make_unique<EmptySearch>();
+}
+
EmptyBlueprint::EmptyBlueprint(const FieldSpecBase &field)
: SimpleLeafBlueprint(field)
{
diff --git a/searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.h b/searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.h
index b99be4a9353..d2e86ac65a4 100644
--- a/searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.h
+++ b/searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.h
@@ -14,9 +14,8 @@ namespace search::queryeval {
class EmptyBlueprint : public SimpleLeafBlueprint
{
protected:
- SearchIterator::UP
- createLeafSearch(const search::fef::TermFieldMatchDataArray &tfmda, bool strict) const override;
-
+ SearchIterator::UP createLeafSearch(const search::fef::TermFieldMatchDataArray &tfmda, bool strict) const override;
+ SearchIterator::UP createFilterSearch(bool strict, FilterConstraint constraint) const override;
public:
EmptyBlueprint(const FieldSpecBaseList &fields);
EmptyBlueprint(const FieldSpecBase &field);