summaryrefslogtreecommitdiffstats
path: root/searchcommon
diff options
context:
space:
mode:
Diffstat (limited to 'searchcommon')
-rw-r--r--searchcommon/src/vespa/searchcommon/common/schemaconfigurer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/searchcommon/src/vespa/searchcommon/common/schemaconfigurer.cpp b/searchcommon/src/vespa/searchcommon/common/schemaconfigurer.cpp
index a46f99d158d..3750f8d1d62 100644
--- a/searchcommon/src/vespa/searchcommon/common/schemaconfigurer.cpp
+++ b/searchcommon/src/vespa/searchcommon/common/schemaconfigurer.cpp
@@ -28,9 +28,9 @@ Schema::DataType
convertIndexDataType(const IndexschemaConfig::Indexfield::Datatype &type)
{
switch (type) {
- case IndexschemaConfig::Indexfield::STRING:
+ case IndexschemaConfig::Indexfield::Datatype::STRING:
return DataType::STRING;
- case IndexschemaConfig::Indexfield::INT64:
+ case IndexschemaConfig::Indexfield::Datatype::INT64:
return DataType::INT64;
}
return DataType::STRING;
@@ -41,11 +41,11 @@ Schema::CollectionType
convertIndexCollectionType(const IndexschemaConfig::Indexfield::Collectiontype &type)
{
switch (type) {
- case IndexschemaConfig::Indexfield::SINGLE:
+ case IndexschemaConfig::Indexfield::Collectiontype::SINGLE:
return CollectionType::SINGLE;
- case IndexschemaConfig::Indexfield::ARRAY:
+ case IndexschemaConfig::Indexfield::Collectiontype::ARRAY:
return CollectionType::ARRAY;
- case IndexschemaConfig::Indexfield::WEIGHTEDSET:
+ case IndexschemaConfig::Indexfield::Collectiontype::WEIGHTEDSET:
return CollectionType::WEIGHTEDSET;
}
return CollectionType::SINGLE;