summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2022-10-13 16:06:48 +0200
committerTor Egge <Tor.Egge@online.no>2022-10-13 16:06:48 +0200
commit74d74fb9049a4b1308a76d8bdbe0004109d0e6b9 (patch)
treecbf7c738839215282f87cdc26a1b33ecf1ae8225 /searchcore
parentd3fefa3ab3db39b713aec3c7cd186c81b468741e (diff)
Use document::AnnotationType::TERM. Remove search::linguistics::TERM.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/tests/proton/docsummary/docsummary.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/docsummary/docsummary.cpp b/searchcore/src/tests/proton/docsummary/docsummary.cpp
index 2de55e36566..677419d9cee 100644
--- a/searchcore/src/tests/proton/docsummary/docsummary.cpp
+++ b/searchcore/src/tests/proton/docsummary/docsummary.cpp
@@ -8,6 +8,7 @@
#include <vespa/document/annotation/spanlist.h>
#include <vespa/document/annotation/spantree.h>
#include <vespa/document/config/documenttypes_config_fwd.h>
+#include <vespa/document/datatype/annotationtype.h>
#include <vespa/document/datatype/documenttype.h>
#include <vespa/document/datatype/tensor_data_type.h>
#include <vespa/document/datatype/urldatatype.h>
@@ -90,7 +91,6 @@ using document::test::makeBucketSpace;
using search::TuneFileDocumentDB;
using search::index::DummyFileHeaderContext;
using search::linguistics::SPANTREE_NAME;
-using search::linguistics::TERM;
using search::test::DocBuilder;
using storage::spi::Timestamp;
using vespa::config::search::core::ProtonConfig;
@@ -182,9 +182,9 @@ BuildContext::make_annotated_string()
auto span_list_up = std::make_unique<SpanList>();
auto span_list = span_list_up.get();
auto tree = std::make_unique<SpanTree>(SPANTREE_NAME, std::move(span_list_up));
- tree->annotate(span_list->add(std::make_unique<Span>(0, 3)), *TERM);
+ tree->annotate(span_list->add(std::make_unique<Span>(0, 3)), *AnnotationType::TERM);
tree->annotate(span_list->add(std::make_unique<Span>(4, 3)),
- Annotation(*TERM, std::make_unique<StringFieldValue>("baz")));
+ Annotation(*AnnotationType::TERM, std::make_unique<StringFieldValue>("baz")));
StringFieldValue value("foo bar");
StringFieldValue::SpanTrees trees;
trees.push_back(std::move(tree));