aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/queryeval/equiv
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-11-07 15:53:17 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-11-07 19:47:47 +0000
commit1c4d2fd8baab15b998de17afa6db4f4da330e020 (patch)
treeda18e83d923a7c0423dd665d63f604755e35acc8 /searchlib/src/tests/queryeval/equiv
parent1e8cf6c828048d8ad6d3a0e8c663b9a76db59d19 (diff)
Sameelement behaves like an and with extra constraints.
So it should behave the sameway during fetchPostings too.
Diffstat (limited to 'searchlib/src/tests/queryeval/equiv')
-rw-r--r--searchlib/src/tests/queryeval/equiv/equiv_test.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/searchlib/src/tests/queryeval/equiv/equiv_test.cpp b/searchlib/src/tests/queryeval/equiv/equiv_test.cpp
index 9b74f8a650f..c570c06a60b 100644
--- a/searchlib/src/tests/queryeval/equiv/equiv_test.cpp
+++ b/searchlib/src/tests/queryeval/equiv/equiv_test.cpp
@@ -1,12 +1,14 @@
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/log/log.h>
-LOG_SETUP("equiv_test");
+
#include <vespa/searchlib/queryeval/leaf_blueprints.h>
#include <vespa/searchlib/queryeval/intermediate_blueprints.h>
#include <vespa/searchlib/queryeval/equiv_blueprint.h>
#include <vespa/searchlib/fef/matchdatalayout.h>
#include <vespa/vespalib/gtest/gtest.h>
+#include <vespa/log/log.h>
+LOG_SETUP("equiv_test");
+
using namespace search::queryeval;
using search::fef::MatchData;
using search::fef::MatchDataLayout;
@@ -17,7 +19,7 @@ using search::fef::FieldPositionsIterator;
class EquivTest : public ::testing::Test {
protected:
EquivTest();
- ~EquivTest();
+ ~EquivTest() override;
void test_equiv(bool strict, bool unpack_normal_features, bool unpack_interleaved_features);
};
@@ -57,7 +59,7 @@ EquivTest::test_equiv(bool strict, bool unpack_normal_features, bool unpack_inte
data.setNeedNormalFeatures(unpack_normal_features);
data.setNeedInterleavedFeatures(unpack_interleaved_features);
}
- bp->fetchPostings(ExecuteInfo::create(strict));
+ bp->fetchPostings(ExecuteInfo::createForTest(strict));
SearchIterator::UP search = bp->createSearch(*md, strict);
search->initFullRange();