summaryrefslogtreecommitdiffstats
path: root/configdefinitions
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2020-02-18 09:52:24 +0100
committerGitHub <noreply@github.com>2020-02-18 09:52:24 +0100
commitf752e59466d042f686314aed42be59707a0766a9 (patch)
tree350db4c53183b4784c4cbf1afda8c7d5ff2a32f1 /configdefinitions
parent7814e2aec7b3396d6a9bbc66b7b8627817a04c33 (diff)
parentd96f6d95757cbf9e51de1bbb871bc8ebfd221b55 (diff)
Merge pull request #12232 from vespa-engine/geirst/config-for-hnsw-index-on-tensor-attribute
Add support for specifying a hnsw index together with a 1-dimensional…
Diffstat (limited to 'configdefinitions')
-rw-r--r--configdefinitions/src/vespa/attributes.def5
1 files changed, 5 insertions, 0 deletions
diff --git a/configdefinitions/src/vespa/attributes.def b/configdefinitions/src/vespa/attributes.def
index f9db9eb2f0d..eb7dad88995 100644
--- a/configdefinitions/src/vespa/attributes.def
+++ b/configdefinitions/src/vespa/attributes.def
@@ -30,3 +30,8 @@ attribute[].densepostinglistthreshold double default=0.40
attribute[].tensortype string default=""
# Whether this is an imported attribute (from parent document db) or not.
attribute[].imported bool default=false
+
+# Configuration parameters for a hnsw index used together with a 1-dimensional indexed tensor for approximate nearest neighbor search.
+attribute[].index.hnsw.enabled bool default=false
+attribute[].index.hnsw.maxlinkspernode int default=16
+attribute[].index.hnsw.neighborstoexploreatinsert int default=200