diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-03-28 22:07:37 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-03-29 13:56:56 +0000 |
commit | d4712740d1281fa3a2fa945dfd3ea4c2182d663c (patch) | |
tree | 1ace22ed894ed094bbb5c1725899124e325781f0 /searchcore/src/tests/proton/matching/query_test.cpp | |
parent | fef814ec263ce1ceca0416251b3204f43ee3ed30 (diff) |
- Let DotProduct,Wand and WeightedSet be Term nodes in the query tree as they really are.
That restricts the nodes to what they can really do and makes them significantly cheaper.
- In addition type conversion of numeric terms is delayed to when it is necessary.
And as next step they can be avoided completely.
Diffstat (limited to 'searchcore/src/tests/proton/matching/query_test.cpp')
-rw-r--r-- | searchcore/src/tests/proton/matching/query_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/matching/query_test.cpp b/searchcore/src/tests/proton/matching/query_test.cpp index 7cc11b0dc0c..696b13c4e21 100644 --- a/searchcore/src/tests/proton/matching/query_test.cpp +++ b/searchcore/src/tests/proton/matching/query_test.cpp @@ -898,9 +898,9 @@ void Test::requireThatWeakAndBlueprintsAreCreatedCorrectly() { void Test::requireThatParallelWandBlueprintsAreCreatedCorrectly() { using search::queryeval::WeakAndBlueprint; - ProtonWandTerm wand(field, 42, Weight(100), 123, 9000, 1.25); - wand.append(Node::UP(new ProtonStringTerm("foo", field, 0, Weight(3)))); - wand.append(Node::UP(new ProtonStringTerm("bar", field, 0, Weight(7)))); + ProtonWandTerm wand(2, field, 42, Weight(100), 123, 9000, 1.25); + wand.addTerm("foo", Weight(3)); + wand.addTerm("bar", Weight(7)); ViewResolver viewResolver; ResolveViewVisitor resolve_visitor(viewResolver, attribute_index_env); |