summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@verizonmedia.com>2019-10-25 10:37:10 +0200
committerGitHub <noreply@github.com>2019-10-25 10:37:10 +0200
commita7941c6269115e54914fed2258f62526f1eb887a (patch)
tree32cc7d4becd3c3bb96161d9973aec78dd437e668 /searchcore
parent8b8f5a7572102b3e0276bbf7c1401710c404c09b (diff)
parent89c90492cacf3ae7b359fe9127fc5c197545a762 (diff)
Merge pull request #11086 from vespa-engine/vekterli/improve-multi-value-attribute-update-complexity
Make multi value attribute inserts O(n) instead of O(n^2)
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/tests/proton/docsummary/docsummary.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/searchcore/src/tests/proton/docsummary/docsummary.cpp b/searchcore/src/tests/proton/docsummary/docsummary.cpp
index 0e521e473ae..26abd6be914 100644
--- a/searchcore/src/tests/proton/docsummary/docsummary.cpp
+++ b/searchcore/src/tests/proton/docsummary/docsummary.cpp
@@ -765,12 +765,14 @@ Test::requireThatAttributesAreUsed()
EXPECT_EQUAL(2u, rep->docsums.size());
+ // FIXME the expected output ordering of weighted set fields is currently inherently linked
+ // to the internal ordering of such attributes. Should be decoupled, as this is very fragile.
EXPECT_TRUE(assertSlime("{ba:10,bb:10.1,"
"bc:'foo',"
"bd:[20,30],"
"be:[20.2,30.3],"
"bf:['bar','baz'],"
- "bg:[{item:40,weight:2},{item:50,weight:3}],"
+ "bg:[{item:50,weight:3},{item:40,weight:2}],"
"bh:[{item:40.4,weight:4},{item:50.5,weight:5}],"
"bi:[{item:'quux',weight:7},{item:'qux',weight:6}],"
"bj:'0x01020178017901016601674008000000000000'}", *rep, 0, true));