summaryrefslogtreecommitdiffstats
path: root/configdefinitions
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-04-15 10:15:25 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-04-15 10:16:09 +0000
commit712ad877d53849772f29b6962a5cb261131e3668 (patch)
tree3fe727339d5f94a9a0295865db983282402b255b /configdefinitions
parent1ee3a5aa8d674b1456b684c583a96092be91a344 (diff)
Introduce top-k-probability and use it to fetch correct proper amount of hits from each partition
Diffstat (limited to 'configdefinitions')
-rw-r--r--configdefinitions/src/vespa/dispatch.def7
1 files changed, 7 insertions, 0 deletions
diff --git a/configdefinitions/src/vespa/dispatch.def b/configdefinitions/src/vespa/dispatch.def
index 21001eb3af0..3f553b5b8ba 100644
--- a/configdefinitions/src/vespa/dispatch.def
+++ b/configdefinitions/src/vespa/dispatch.def
@@ -23,6 +23,13 @@ distributionPolicy enum { ROUNDROBIN, ADAPTIVE } default=ROUNDROBIN
## don't use it if you don't (really) mean it.
maxHitsPerNode int default=2147483647
+## Probability for getting the correct topK documents.
+## A value of 1.0 will ask all partitions for topK documents.
+## Any value between <0, 1> will use a Student T fith 30 degrees freedom and compute a K value that
+## will give you the topK documents according to this formulae.
+## q = k/n + qT (p',30) x √(k × (1/n) × (1 − 1/n))
+topKProbability double default=1.0
+
# Is multi-level dispatch configured for this cluster
# Deprecated, will go away soon, NOOP
useMultilevelDispatch bool default=false