summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2021-08-25 16:29:24 +0200
committerGitHub <noreply@github.com>2021-08-25 16:29:24 +0200
commitb0c22819a51e8535145ab9bfebb4b999a05be8d7 (patch)
tree4f8939358975750a6b6347d9b71a0b127473575f /searchcore
parent2aea4b1dfb55cd84ba6dad77ede5a89754a0c8cf (diff)
parentbb8172ca661c994a701c6ae9fa79301ff1ce0d31 (diff)
Merge pull request #18859 from vespa-engine/toregge/get-paged-setting-from-live-attribute-config
Get paged setting from live attribute config.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/tests/proton/documentdb/documentdbconfigscout/documentdbconfigscout_test.cpp10
-rw-r--r--searchcore/src/vespa/searchcore/proton/attribute/attributesconfigscout.cpp1
2 files changed, 11 insertions, 0 deletions
diff --git a/searchcore/src/tests/proton/documentdb/documentdbconfigscout/documentdbconfigscout_test.cpp b/searchcore/src/tests/proton/documentdb/documentdbconfigscout/documentdbconfigscout_test.cpp
index 2ae28936476..c6876e95dc4 100644
--- a/searchcore/src/tests/proton/documentdb/documentdbconfigscout/documentdbconfigscout_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/documentdbconfigscout/documentdbconfigscout_test.cpp
@@ -43,6 +43,9 @@ assertDefaultAttribute(const AttributesConfig::Attribute &attribute,
if (!EXPECT_FALSE(attribute.huge)) {
return false;
}
+ if (!EXPECT_FALSE(attribute.paged)) {
+ return false;
+ }
if (!EXPECT_FALSE(attribute.enablebitvectors)) {
return false;
}
@@ -66,6 +69,9 @@ assertFastSearchAttribute(const AttributesConfig::Attribute &attribute,
if (!EXPECT_FALSE(attribute.huge)) {
return false;
}
+ if (!EXPECT_FALSE(attribute.paged)) {
+ return false;
+ }
if (!EXPECT_FALSE(attribute.enablebitvectors)) {
return false;
}
@@ -89,6 +95,9 @@ assertFastSearchAndMoreAttribute(const AttributesConfig::Attribute &attribute,
if (!EXPECT_TRUE(attribute.huge)) {
return false;
}
+ if (!EXPECT_TRUE(attribute.paged)) {
+ return false;
+ }
if (!EXPECT_TRUE(attribute.enablebitvectors)) {
return false;
}
@@ -233,6 +242,7 @@ setupFastSearchAndMoreAttribute(const vespalib::string name)
attribute.name = name;
attribute.fastsearch = true;
attribute.huge = true;
+ attribute.paged = true;
attribute.enablebitvectors = true;
attribute.enableonlybitvector = true;
return attribute;
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attributesconfigscout.cpp b/searchcore/src/vespa/searchcore/proton/attribute/attributesconfigscout.cpp
index 7f6d47f4ae2..135854b9a2d 100644
--- a/searchcore/src/vespa/searchcore/proton/attribute/attributesconfigscout.cpp
+++ b/searchcore/src/vespa/searchcore/proton/attribute/attributesconfigscout.cpp
@@ -28,6 +28,7 @@ AttributesConfigScout::adjust(AttributesConfig::Attribute &attr,
attr.enableonlybitvector = liveAttr.enableonlybitvector;
attr.fastsearch = liveAttr.fastsearch;
attr.huge = liveAttr.huge;
+ attr.paged = liveAttr.paged;
// Note: Predicate attributes only handle changes for the dense-posting-list-threshold config.
attr.densepostinglistthreshold = liveAttr.densepostinglistthreshold;
attr.distancemetric = liveAttr.distancemetric;