summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-06-19 14:48:51 +0200
committerTor Egge <Tor.Egge@broadpark.no>2020-06-19 14:48:51 +0200
commit4de7608317ab5fc2390c6ef0ed37c15e6a7181dd (patch)
treeba0334ad5c2dbdce67e274d046398331a507b523
parent5c15bc48b16c9c86ffce7f73f3fcb5d3fba0fcd8 (diff)
Add description for nearest neighbor brute force limit index property.
-rw-r--r--searchlib/src/vespa/searchlib/fef/indexproperties.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/fef/indexproperties.h b/searchlib/src/vespa/searchlib/fef/indexproperties.h
index 9787d918ea5..bff660c48ae 100644
--- a/searchlib/src/vespa/searchlib/fef/indexproperties.h
+++ b/searchlib/src/vespa/searchlib/fef/indexproperties.h
@@ -205,6 +205,13 @@ namespace matching {
static uint32_t lookup(const Properties &props, uint32_t defaultValue);
};
+ /**
+ * Proparty to control fallback to brute force search for nearest
+ * neighbor query terms. If the ratio of candidates in the global
+ * filter (which tracks the documents that can match the query
+ * based on the other parts of the query) is less than this limit
+ * then use brute force search.
+ **/
struct NearestNeighborBruteForceLimit {
static const vespalib::string NAME;
static const double DEFAULT_VALUE;