diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-09-05 13:43:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-05 13:43:50 +0200 |
commit | f0a9d47ebbdb9d708707815dc8804e66af924dc2 (patch) | |
tree | 7fca345c83a6e8e420413688529d23c8b711781c /searchcore | |
parent | 8ea0b68d38beb85431fecf3cfe368310369b68f3 (diff) |
Revert "Bratseth/handle large constants take 3"
Diffstat (limited to 'searchcore')
8 files changed, 14 insertions, 7 deletions
diff --git a/searchcore/pom.xml b/searchcore/pom.xml index 002ba1f508f..3b43bf1205e 100644 --- a/searchcore/pom.xml +++ b/searchcore/pom.xml @@ -1,4 +1,3 @@ -<?xml version="1.0"?> <!-- Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" @@ -12,8 +11,8 @@ <relativePath>../parent/pom.xml</relativePath> </parent> <artifactId>searchcore</artifactId> - <packaging>jar</packaging> <version>6-SNAPSHOT</version> + <packaging>jar</packaging> <name>${project.artifactId}</name> <dependencies> <dependency> diff --git a/searchcore/src/apps/verify_ranksetup/verify_ranksetup.cpp b/searchcore/src/apps/verify_ranksetup/verify_ranksetup.cpp index 4f2720718ff..f60863ef0b0 100644 --- a/searchcore/src/apps/verify_ranksetup/verify_ranksetup.cpp +++ b/searchcore/src/apps/verify_ranksetup/verify_ranksetup.cpp @@ -4,7 +4,6 @@ #include <vespa/config-imported-fields.h> #include <vespa/config-indexschema.h> #include <vespa/config-rank-profiles.h> -#include <vespa/config-ranking-constants.h> #include <vespa/config/config.h> #include <vespa/config/helper/legacy.h> #include <vespa/config/common/exceptions.h> @@ -12,6 +11,7 @@ #include <vespa/eval/eval/value_cache/constant_value.h> #include <vespa/eval/tensor/default_tensor_engine.h> #include <vespa/searchcommon/common/schemaconfigurer.h> +#include <vespa/searchcore/config/config-ranking-constants.h> #include <vespa/searchcore/proton/matching/error_constant_value.h> #include <vespa/searchcore/proton/matching/indexenvironment.h> #include <vespa/searchlib/features/setup.h> diff --git a/searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp b/searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp index f2e5fa7c152..2817ddb1b85 100644 --- a/searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp +++ b/searchcore/src/tests/proton/proton_config_fetcher/proton_config_fetcher_test.cpp @@ -5,7 +5,6 @@ #include <vespa/config-imported-fields.h> #include <vespa/config-indexschema.h> #include <vespa/config-rank-profiles.h> -#include <vespa/config-ranking-constants.h> #include <vespa/config-summary.h> #include <vespa/config-summarymap.h> #include <vespa/document/repo/documenttyperepo.h> @@ -18,6 +17,7 @@ #include <vespa/searchcore/proton/server/i_proton_configurer.h> #include <vespa/searchcore/proton/common/hw_info.h> #include <vespa/searchsummary/config/config-juniperrc.h> +#include <vespa/searchcore/config/config-ranking-constants.h> #include <vespa/vespalib/testkit/testapp.h> #include <vespa/vespalib/util/varholder.h> #include <vespa/config-bucketspaces.h> diff --git a/searchcore/src/tests/proton/proton_configurer/proton_configurer_test.cpp b/searchcore/src/tests/proton/proton_configurer/proton_configurer_test.cpp index e42016c9577..dfb1268aaa6 100644 --- a/searchcore/src/tests/proton/proton_configurer/proton_configurer_test.cpp +++ b/searchcore/src/tests/proton/proton_configurer/proton_configurer_test.cpp @@ -5,7 +5,6 @@ #include <vespa/config-imported-fields.h> #include <vespa/config-indexschema.h> #include <vespa/config-rank-profiles.h> -#include <vespa/config-ranking-constants.h> #include <vespa/config-summary.h> #include <vespa/config-summarymap.h> #include <vespa/document/repo/documenttyperepo.h> @@ -19,6 +18,7 @@ #include <vespa/searchcore/proton/server/i_proton_configurer_owner.h> #include <vespa/searchcore/proton/server/i_proton_disk_layout.h> #include <vespa/searchsummary/config/config-juniperrc.h> +#include <vespa/searchcore/config/config-ranking-constants.h> #include <vespa/vespalib/testkit/testapp.h> #include <vespa/searchcommon/common/schemaconfigurer.h> #include <vespa/vespalib/util/threadstackexecutor.h> diff --git a/searchcore/src/vespa/searchcore/config/CMakeLists.txt b/searchcore/src/vespa/searchcore/config/CMakeLists.txt index 186c9b68d34..3d62309161c 100644 --- a/searchcore/src/vespa/searchcore/config/CMakeLists.txt +++ b/searchcore/src/vespa/searchcore/config/CMakeLists.txt @@ -9,4 +9,6 @@ vespa_generate_config(searchcore_fconfig fdispatchrc.def) install_config_definition(fdispatchrc.def vespa.config.search.core.fdispatchrc.def) vespa_generate_config(searchcore_fconfig proton.def) install_config_definition(proton.def vespa.config.search.core.proton.def) +vespa_generate_config(searchcore_fconfig ranking-constants.def) +install_config_definition(ranking-constants.def vespa.config.search.core.ranking-constants.def) vespa_generate_config(searchcore_fconfig hwinfo.def) diff --git a/searchcore/src/vespa/searchcore/config/ranking-constants.def b/searchcore/src/vespa/searchcore/config/ranking-constants.def new file mode 100644 index 00000000000..3b55eda3308 --- /dev/null +++ b/searchcore/src/vespa/searchcore/config/ranking-constants.def @@ -0,0 +1,6 @@ +# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +namespace=vespa.config.search.core + +constant[].name string +constant[].fileref file +constant[].type string diff --git a/searchcore/src/vespa/searchcore/proton/server/documentdbconfig.cpp b/searchcore/src/vespa/searchcore/proton/server/documentdbconfig.cpp index b9a3d055cd1..fd1f9f1155d 100644 --- a/searchcore/src/vespa/searchcore/proton/server/documentdbconfig.cpp +++ b/searchcore/src/vespa/searchcore/proton/server/documentdbconfig.cpp @@ -5,12 +5,12 @@ #include <vespa/config-imported-fields.h> #include <vespa/config-indexschema.h> #include <vespa/config-rank-profiles.h> -#include <vespa/config-ranking-constants.h> #include <vespa/config-summary.h> #include <vespa/config-summarymap.h> #include <vespa/searchsummary/config/config-juniperrc.h> #include <vespa/document/config/config-documenttypes.h> #include <vespa/document/repo/documenttyperepo.h> +#include <vespa/searchcore/config/config-ranking-constants.h> #include <vespa/searchcore/proton/attribute/attribute_aspect_delayer.h> #include <vespa/searchcore/proton/common/document_type_inspector.h> #include <vespa/searchcore/proton/common/indexschema_inspector.h> diff --git a/searchcore/src/vespa/searchcore/proton/server/documentdbconfigmanager.cpp b/searchcore/src/vespa/searchcore/proton/server/documentdbconfigmanager.cpp index 431f7554416..f2230215c3d 100644 --- a/searchcore/src/vespa/searchcore/proton/server/documentdbconfigmanager.cpp +++ b/searchcore/src/vespa/searchcore/proton/server/documentdbconfigmanager.cpp @@ -3,9 +3,9 @@ #include "documentdbconfigmanager.h" #include "bootstrapconfig.h" #include <vespa/searchcore/proton/common/hw_info.h> +#include <vespa/searchcore/config/config-ranking-constants.h> #include <vespa/config-imported-fields.h> #include <vespa/config-rank-profiles.h> -#include <vespa/config-ranking-constants.h> #include <vespa/config-summarymap.h> #include <vespa/config/file_acquirer/file_acquirer.h> #include <vespa/config/helper/legacy.h> |