aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/apps
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahoo-inc.com>2017-04-04 19:34:59 +0000
committerTor Egge <Tor.Egge@yahoo-inc.com>2017-04-04 19:34:59 +0000
commit3c07b3d9deba8e497925322866d4e366b1131a4d (patch)
tree24db16422f266e308f877c8fb69f5d8ecac496c2 /searchcore/src/apps
parente9c418d113cee3075d07279f3589fa6a144e593b (diff)
Add attribute specs (derived from attribute config) to document db config.
Diffstat (limited to 'searchcore/src/apps')
-rw-r--r--searchcore/src/apps/tests/persistenceconformance_test.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/searchcore/src/apps/tests/persistenceconformance_test.cpp b/searchcore/src/apps/tests/persistenceconformance_test.cpp
index c3721b0064b..1aa85baccb7 100644
--- a/searchcore/src/apps/tests/persistenceconformance_test.cpp
+++ b/searchcore/src/apps/tests/persistenceconformance_test.cpp
@@ -22,6 +22,7 @@ LOG_SETUP("persistenceconformance_test");
#include <tests/proton/common/dummydbowner.h>
#include <vespa/vespalib/io/fileutil.h>
#include <vespa/searchcore/proton/common/hw_info.h>
+#include <vespa/searchcore/proton/attribute/attribute_specs_builder.h>
using namespace config;
@@ -107,12 +108,15 @@ public:
SchemaBuilder::build(*indexschema, *schema);
SchemaBuilder::build(*attributes, *schema);
SchemaBuilder::build(*summary, *schema);
+ AttributeSpecsBuilder attributeSpecsBuilder;
+ attributeSpecsBuilder.setup(*attributes);
return DocumentDBConfig::SP(new DocumentDBConfig(
1,
std::make_shared<RankProfilesConfig>(),
std::make_shared<matching::RankingConstants>(),
indexschema,
- attributes,
+ attributeSpecsBuilder.getAttributesConfig(),
+ attributeSpecsBuilder.getAttributeSpecs(),
summary,
std::make_shared<SummarymapConfig>(),
std::make_shared<JuniperrcConfig>(),