summaryrefslogtreecommitdiffstats
path: root/configdefinitions/src/vespa/vespa.config.search.attributes.def
diff options
context:
space:
mode:
Diffstat (limited to 'configdefinitions/src/vespa/vespa.config.search.attributes.def')
-rw-r--r--configdefinitions/src/vespa/vespa.config.search.attributes.def45
1 files changed, 45 insertions, 0 deletions
diff --git a/configdefinitions/src/vespa/vespa.config.search.attributes.def b/configdefinitions/src/vespa/vespa.config.search.attributes.def
new file mode 100644
index 00000000000..6c69d71fdf6
--- /dev/null
+++ b/configdefinitions/src/vespa/vespa.config.search.attributes.def
@@ -0,0 +1,45 @@
+# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+namespace=vespa.config.search
+
+attribute[].name string
+attribute[].datatype enum { STRING, BOOL, UINT2, UINT4, INT8, INT16, INT32, INT64, FLOAT16, FLOAT, DOUBLE, PREDICATE, TENSOR, REFERENCE, NONE } default=NONE
+attribute[].collectiontype enum { SINGLE, ARRAY, WEIGHTEDSET } default=SINGLE
+attribute[].removeifzero bool default=false
+attribute[].createifnonexistent bool default=false
+attribute[].fastsearch bool default=false
+attribute[].huge bool default=false
+# An attribute marked mutable can be updated by a query.
+attribute[].ismutable bool default=false
+attribute[].sortascending bool default=true
+attribute[].sortfunction enum { RAW, LOWERCASE, UCA } default=UCA
+attribute[].sortstrength enum { PRIMARY, SECONDARY, TERTIARY, QUATERNARY, IDENTICAL } default=PRIMARY
+attribute[].sortlocale string default=""
+# Allow bitvector postings in addition to btree postings ?
+attribute[].enablebitvectors bool default=false
+# Allow only bitvector postings, i.e. drop btree postings to save memory.?
+attribute[].enableonlybitvector bool default=false
+# Allow fast access to this attribute at all times.
+# If so, attribute is kept in memory also for non-searchable documents.
+attribute[].fastaccess bool default=false
+attribute[].arity int default=8
+attribute[].lowerbound long default=-9223372036854775808
+attribute[].upperbound long default=9223372036854775807
+# The threshold is given as a ratio of the corpus size
+attribute[].densepostinglistthreshold double default=0.40
+# Specification of tensor type if this attribute is of type TENSOR.
+attribute[].tensortype string default=""
+# Whether this is an imported attribute (from parent document db) or not.
+attribute[].imported bool default=false
+
+# The distance metric to use for nearest neighbor search.
+# Is only used when the attribute is a 1-dimensional indexed tensor.
+attribute[].distancemetric enum { EUCLIDEAN, ANGULAR, GEODEGREES, INNERPRODUCT, HAMMING } default=EUCLIDEAN
+
+# 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
+# Deprecated: Remove on Vespa 8 or before when possible.
+attribute[].index.hnsw.distancemetric enum { EUCLIDEAN, ANGULAR, GEODEGREES, HAMMING } default=EUCLIDEAN
+# Whether multi-threaded indexing is enabled for this hnsw index.
+attribute[].index.hnsw.multithreadedindexing bool default=true