aboutsummaryrefslogtreecommitdiffstats
path: root/searchcommon
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-04-24 14:31:22 +0200
committerTor Egge <Tor.Egge@broadpark.no>2020-04-24 15:37:45 +0200
commitc09675a41768642d37390c00cb05ecfc533ca5d1 (patch)
tree38e5dd7d1725a8d6651894d408ea1e7d158263e2 /searchcommon
parent24eaf1642c012eb2f9f76a39102e87fb82874321 (diff)
Ignore hnsw index attribute save file if major parameters are changed.
Diffstat (limited to 'searchcommon')
-rw-r--r--searchcommon/src/vespa/searchcommon/attribute/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/config.h b/searchcommon/src/vespa/searchcommon/attribute/config.h
index 836fcfed84a..df5aa9e217a 100644
--- a/searchcommon/src/vespa/searchcommon/attribute/config.h
+++ b/searchcommon/src/vespa/searchcommon/attribute/config.h
@@ -71,6 +71,10 @@ public:
_hnsw_index_params = params;
return *this;
}
+ Config& clear_hnsw_index_params() {
+ _hnsw_index_params.reset();
+ return *this;
+ }
/**
* Enable attribute posting list to consist of a bitvector in