From ba80e1a1cef9dd17ae341d36abf9a16f3807269e Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Tue, 26 Oct 2021 04:55:48 +0000 Subject: execute -> mutate --- searchlib/src/tests/ranksetup/ranksetup_test.cpp | 28 ++++++++++++++---------- 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'searchlib/src/tests') diff --git a/searchlib/src/tests/ranksetup/ranksetup_test.cpp b/searchlib/src/tests/ranksetup/ranksetup_test.cpp index 783405b8255..51f998d0793 100644 --- a/searchlib/src/tests/ranksetup/ranksetup_test.cpp +++ b/searchlib/src/tests/ranksetup/ranksetup_test.cpp @@ -522,12 +522,14 @@ void RankSetupTest::testRankSetup() env.getProperties().add(hitcollector::EstimatePoint::NAME, "70"); env.getProperties().add(hitcollector::EstimateLimit::NAME, "80"); env.getProperties().add(hitcollector::RankScoreDropLimit::NAME, "90.5"); - env.getProperties().add(execute::onmatch::Attribute::NAME, "a"); - env.getProperties().add(execute::onmatch::Operation::NAME, "++"); - env.getProperties().add(execute::onrerank::Attribute::NAME, "b"); - env.getProperties().add(execute::onrerank::Operation::NAME, "=7"); - env.getProperties().add(execute::onsummary::Attribute::NAME, "c"); - env.getProperties().add(execute::onsummary::Operation::NAME, "--"); + env.getProperties().add(mutate::on_match::Attribute::NAME, "a"); + env.getProperties().add(mutate::on_match::Operation::NAME, "+=3"); + env.getProperties().add(mutate::on_first_phase::Attribute::NAME, "b"); + env.getProperties().add(mutate::on_first_phase::Operation::NAME, "=3"); + env.getProperties().add(mutate::on_second_phase::Attribute::NAME, "b"); + env.getProperties().add(mutate::on_second_phase::Operation::NAME, "=7"); + env.getProperties().add(mutate::on_summary::Attribute::NAME, "c"); + env.getProperties().add(mutate::on_summary::Operation::NAME, "-=2"); RankSetup rs(_factory, env); rs.configure(); @@ -553,12 +555,14 @@ void RankSetupTest::testRankSetup() EXPECT_EQUAL(rs.getEstimatePoint(), 70u); EXPECT_EQUAL(rs.getEstimateLimit(), 80u); EXPECT_EQUAL(rs.getRankScoreDropLimit(), 90.5); - EXPECT_EQUAL(rs.getExecuteOnMatch()._attribute, "a"); - EXPECT_EQUAL(rs.getExecuteOnMatch()._operation, "++"); - EXPECT_EQUAL(rs.getExecuteOnReRank()._attribute, "b"); - EXPECT_EQUAL(rs.getExecuteOnReRank()._operation, "=7"); - EXPECT_EQUAL(rs.getExecuteOnSummary()._attribute, "c"); - EXPECT_EQUAL(rs.getExecuteOnSummary()._operation, "--"); + EXPECT_EQUAL(rs.getMutateOnMatch()._attribute, "a"); + EXPECT_EQUAL(rs.getMutateOnMatch()._operation, "+=3"); + EXPECT_EQUAL(rs.getMutateOnFirstPhase()._attribute, "b"); + EXPECT_EQUAL(rs.getMutateOnFirstPhase()._operation, "=3"); + EXPECT_EQUAL(rs.getMutateOnSecondPhase()._attribute, "b"); + EXPECT_EQUAL(rs.getMutateOnSecondPhase()._operation, "=7"); + EXPECT_EQUAL(rs.getMutateOnSummary()._attribute, "c"); + EXPECT_EQUAL(rs.getMutateOnSummary()._operation, "-=2"); } -- cgit v1.2.3