diff options
author | Geir Storli <geirst@verizonmedia.com> | 2019-05-02 13:20:16 +0000 |
---|---|---|
committer | Geir Storli <geirst@verizonmedia.com> | 2019-05-02 13:20:16 +0000 |
commit | c1bfad36330765d713188280c402de0c284ded9b (patch) | |
tree | ff65c2750f7db6ad0cf548f298a69bea040fef71 /searchcommon/src/tests/schema/schema_test.cpp | |
parent | c1ea7086047619f75528b972c1c57eb463446ecd (diff) |
Propagate flag to trigger use of experimental posting list format for an index field.
Diffstat (limited to 'searchcommon/src/tests/schema/schema_test.cpp')
-rw-r--r-- | searchcommon/src/tests/schema/schema_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searchcommon/src/tests/schema/schema_test.cpp b/searchcommon/src/tests/schema/schema_test.cpp index 4ebbd574fc3..780ea7a6640 100644 --- a/searchcommon/src/tests/schema/schema_test.cpp +++ b/searchcommon/src/tests/schema/schema_test.cpp @@ -31,6 +31,7 @@ assertIndexField(const Schema::IndexField& exp, { assertField(exp, act); EXPECT_EQ(exp.getAvgElemLen(), act.getAvgElemLen()); + EXPECT_EQ(exp.use_experimental_posting_list_format(), act.use_experimental_posting_list_format()); } void @@ -182,7 +183,7 @@ TEST(SchemaTest, test_load_and_save) EXPECT_EQ(3u, s.getNumIndexFields()); assertIndexField(SIF("a", SDT::STRING), s.getIndexField(0)); assertIndexField(SIF("b", SDT::INT64), s.getIndexField(1)); - assertIndexField(SIF("c", SDT::STRING), s.getIndexField(2)); + assertIndexField(SIF("c", SDT::STRING).set_experimental_posting_list_format(true), s.getIndexField(2)); EXPECT_EQ(9u, s.getNumAttributeFields()); assertField(SAF("a", SDT::STRING, SCT::SINGLE), |