From add4b55096dcbb502c57ea46eab475b2bd7954e1 Mon Sep 17 00:00:00 2001 From: Geir Storli Date: Thu, 22 Nov 2018 13:26:45 +0000 Subject: Remove remains of RISE. --- .../src/tests/schema/load-save-cfg/indexschema.cfg | 11 ----------- .../vespa/searchcommon/common/schemaconfigurer.cpp | 22 ++++++---------------- 2 files changed, 6 insertions(+), 27 deletions(-) (limited to 'searchcommon') diff --git a/searchcommon/src/tests/schema/load-save-cfg/indexschema.cfg b/searchcommon/src/tests/schema/load-save-cfg/indexschema.cfg index 989f30f7499..c0998bcf597 100644 --- a/searchcommon/src/tests/schema/load-save-cfg/indexschema.cfg +++ b/searchcommon/src/tests/schema/load-save-cfg/indexschema.cfg @@ -8,17 +8,6 @@ indexfield[2].datatype STRING indexfield[2].prefix true indexfield[2].phrases false indexfield[2].positions false -indexfield[3].name e -indexfield[3].datatype BOOLEANTREE -indexfield[3].collectiontype SINGLE -indexfield[4].name f -indexfield[4].indextype RISE -indexfield[4].datatype STRING -indexfield[4].collectiontype WEIGHTEDSET -indexfield[5].name g -indexfield[5].indextype RISE -indexfield[5].datatype INT64 -indexfield[5].collectiontype WEIGHTEDSET fieldset[1] fieldset[0].name default fieldset[0].field[2] diff --git a/searchcommon/src/vespa/searchcommon/common/schemaconfigurer.cpp b/searchcommon/src/vespa/searchcommon/common/schemaconfigurer.cpp index 401003cb74b..d56f3c747c1 100644 --- a/searchcommon/src/vespa/searchcommon/common/schemaconfigurer.cpp +++ b/searchcommon/src/vespa/searchcommon/common/schemaconfigurer.cpp @@ -32,8 +32,6 @@ convertIndexDataType(const IndexschemaConfig::Indexfield::Datatype &type) return DataType::STRING; case IndexschemaConfig::Indexfield::INT64: return DataType::INT64; - case IndexschemaConfig::Indexfield::BOOLEANTREE: - return DataType::BOOLEANTREE; } return DataType::STRING; } @@ -144,20 +142,12 @@ SchemaBuilder::build(const IndexschemaConfig &cfg, Schema &schema) { for (size_t i = 0; i < cfg.indexfield.size(); ++i) { const IndexschemaConfig::Indexfield & f = cfg.indexfield[i]; - if ((f.datatype == IndexschemaConfig::Indexfield::BOOLEANTREE && - f.collectiontype == IndexschemaConfig::Indexfield::SINGLE) || - (f.indextype == IndexschemaConfig::Indexfield::RISE)) - { - LOG(warning, "Your field '%s' is a rise index. Those are no longer supported as of Vespa-5.89.\n" - " Redeploy and follow instructions to mitigate.", f.name.c_str()); - } else { - schema.addIndexField(Schema::IndexField(f.name, convertIndexDataType(f.datatype), - convertIndexCollectionType(f.collectiontype)). - setPrefix(f.prefix). - setPhrases(f.phrases). - setPositions(f.positions). - setAvgElemLen(f.averageelementlen)); - } + schema.addIndexField(Schema::IndexField(f.name, convertIndexDataType(f.datatype), + convertIndexCollectionType(f.collectiontype)). + setPrefix(f.prefix). + setPhrases(f.phrases). + setPositions(f.positions). + setAvgElemLen(f.averageelementlen)); } for (size_t i = 0; i < cfg.fieldset.size(); ++i) { const IndexschemaConfig::Fieldset &fs = cfg.fieldset[i]; -- cgit v1.2.3