aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.cpp
diff options
context:
space:
mode:
authorArne H Juul <arnej27959@users.noreply.github.com>2021-10-19 18:29:53 +0200
committerGitHub <noreply@github.com>2021-10-19 18:29:53 +0200
commit8964cbed0c69e539235eb482651e6f84efd22898 (patch)
tree0652f770ca7a165035aaee67853c8456fe0cd71a /searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.cpp
parente722ea4cb24548558a5a0b50ae483cce0bd3f31c (diff)
parent5bac27daa62f5b9136695a319a7ff5a7b8bcb602 (diff)
Merge pull request #19622 from vespa-engine/arnej/add-true-and-false-itemsv7.486.17
add ITEM_TRUE and ITEM_FALSE query nodes
Diffstat (limited to 'searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.cpp')
-rw-r--r--searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.cpp b/searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.cpp
index a72fbc8d57a..53ffe839a72 100644
--- a/searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.cpp
+++ b/searchlib/src/vespa/searchlib/queryeval/leaf_blueprints.cpp
@@ -2,6 +2,7 @@
#include "leaf_blueprints.h"
#include "emptysearch.h"
+#include "full_search.h"
#include "simplesearch.h"
#include "fake_search.h"
@@ -37,6 +38,24 @@ EmptyBlueprint::EmptyBlueprint()
{
}
+
+SearchIterator::UP
+AlwaysTrueBlueprint::createLeafSearch(const search::fef::TermFieldMatchDataArray &, bool) const
+{
+ return std::make_unique<FullSearch>();
+}
+
+SearchIterator::UP
+AlwaysTrueBlueprint::createFilterSearch(bool /*strict*/, FilterConstraint /* constraint */) const
+{
+ return std::make_unique<FullSearch>();
+}
+
+AlwaysTrueBlueprint::AlwaysTrueBlueprint() : SimpleLeafBlueprint(FieldSpecBaseList())
+{
+ setEstimate(HitEstimate(search::endDocId, false));
+}
+
//-----------------------------------------------------------------------------
SearchIterator::UP