diff options
author | Tor Egge <Tor.Egge@online.no> | 2022-09-21 23:36:08 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2022-09-21 23:36:08 +0200 |
commit | d2955f3c81a16a8b93dd739aacf8f26009ede531 (patch) | |
tree | f59da0070511f217060468175beafeaa36d7830b /searchlib/src/tests/index/doctypebuilder/doctypebuilder_test.cpp | |
parent | 68e95a835a325c751cfd7a819b59ef67dbf4be48 (diff) |
Remove use of summary fields in search::index::DocBuilder and
search::index::DocTypeBuilder.
Diffstat (limited to 'searchlib/src/tests/index/doctypebuilder/doctypebuilder_test.cpp')
-rw-r--r-- | searchlib/src/tests/index/doctypebuilder/doctypebuilder_test.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/searchlib/src/tests/index/doctypebuilder/doctypebuilder_test.cpp b/searchlib/src/tests/index/doctypebuilder/doctypebuilder_test.cpp index 396c7c19cc6..95854fa11b2 100644 --- a/searchlib/src/tests/index/doctypebuilder/doctypebuilder_test.cpp +++ b/searchlib/src/tests/index/doctypebuilder/doctypebuilder_test.cpp @@ -24,14 +24,13 @@ TEST("testSearchDocType") { s.addAttributeField(Schema::AttributeField("spos", DataType::INT64)); s.addAttributeField(Schema::AttributeField("apos", DataType::INT64, CollectionType::ARRAY)); s.addAttributeField(Schema::AttributeField("wpos", DataType::INT64, CollectionType::WEIGHTEDSET)); - s.addSummaryField(Schema::SummaryField("sa", DataType::STRING)); DocTypeBuilder docTypeBuilder(s); document::config::DocumenttypesConfig config = docTypeBuilder.makeConfig(); DocumentTypeRepo repo(config); const DocumentType *docType = repo.getDocumentType("searchdocument"); ASSERT_TRUE(docType); - EXPECT_EQUAL(11u, docType->getFieldCount()); + EXPECT_EQUAL(10u, docType->getFieldCount()); EXPECT_EQUAL("String", docType->getField("ia").getDataType().getName()); EXPECT_EQUAL("Array<String>", @@ -50,7 +49,6 @@ TEST("testSearchDocType") { docType->getField("apos").getDataType().getName()); EXPECT_EQUAL("WeightedSet<Long>", docType->getField("wpos").getDataType().getName()); - EXPECT_EQUAL("String", docType->getField("sa").getDataType().getName()); } TEST("require that multiple fields can have the same type") { |