diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-08-04 07:25:45 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-08-04 12:14:17 +0000 |
commit | bdc43e2dda007965b770cd0a778d6a2f2634d276 (patch) | |
tree | 990cb7bd1babbc9c3b9d77e880c290ed383afb16 /searchcore/src/tests | |
parent | bd3399a2677b32888ef2588adf1c976ed4cdb5cb (diff) |
Remove the unused [header] and [body] fieldsets to simplify backend optimization during get.
Diffstat (limited to 'searchcore/src/tests')
-rw-r--r-- | searchcore/src/tests/proton/document_iterator/document_iterator_test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/searchcore/src/tests/proton/document_iterator/document_iterator_test.cpp b/searchcore/src/tests/proton/document_iterator/document_iterator_test.cpp index 9342ddd4b8a..b76d433337b 100644 --- a/searchcore/src/tests/proton/document_iterator/document_iterator_test.cpp +++ b/searchcore/src/tests/proton/document_iterator/document_iterator_test.cpp @@ -748,7 +748,9 @@ TEST("require that document selection and timestamp range works together") { } TEST("require that fieldset limits fields returned") { - DocumentIterator itr(bucket(5), document::HeaderFields(), selectAll(), newestV(), -1, false); + document::FieldCollection limited(getDocType()); + limited.insert(getDocType().getField("header")); + DocumentIterator itr(bucket(5), limited, selectAll(), newestV(), -1, false); itr.add(doc_with_fields("id:ns:foo::xxx1", Timestamp(1), bucket(5))); IterateResult res = itr.iterate(largeNum); EXPECT_TRUE(res.isCompleted()); |