summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2020-06-08 12:53:31 +0200
committerGitHub <noreply@github.com>2020-06-08 12:53:31 +0200
commit6381a5ddb513d8bd8fc3fb997bf86a76f14ebd34 (patch)
tree51eabeb1618336d3641707eeb8819c1f0453ce83 /searchlib
parenta8e278708a1e853b0a6eb304643e61c51c8313d1 (diff)
parent1aa942a132776cbbc24787e68993b90e23ef654d (diff)
Merge pull request #13504 from vespa-engine/arnej/empty-is-empty
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);