This is an automated email from the ASF dual-hosted git repository.

ishan pushed a commit to branch jira/solr-17927
in repository https://gitbox.apache.org/repos/asf/solr.git

commit 8ab66d71227729e1e879290ef932df8f8ea2face
Author: punAhuja <[email protected]>
AuthorDate: Mon Sep 29 14:43:16 2025 +0530

    Added ef-search to ref-guide
---
 .../modules/query-guide/pages/dense-vector-search.adoc   | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git 
a/solr/solr-ref-guide/modules/query-guide/pages/dense-vector-search.adoc 
b/solr/solr-ref-guide/modules/query-guide/pages/dense-vector-search.adoc
index 87eb6941ba9..9f9e3004aaa 100644
--- a/solr/solr-ref-guide/modules/query-guide/pages/dense-vector-search.adoc
+++ b/solr/solr-ref-guide/modules/query-guide/pages/dense-vector-search.adoc
@@ -455,10 +455,24 @@ Our recommendation is to rely on the default value and 
change this parameter onl
 +
 This parameter must be used together with `saturationThreshold`; either 
specify both to customize the behavior, or omit both to rely on the default 
values.
 
+`ef-search`::
++
+[%autowidth,frame=none]
+|===
+|Optional | Default: `topK * 2`
+|===
++
+(advanced) Controls how many candidates the HNSW algorithm examines during 
search.
++
+The algorithm fetches more results than the requested `topK` and then selects 
the best ones. Higher values fetch more candidates, improving recall but 
slowing down the search. Lower values fetch fewer candidates for faster 
performance but may miss some good matches.
++
+Accepted values:
+Any positive integer.
+
 Here's an example of a `knn` search using the early termination with input 
parameters:
 
 [source,text]
-?q={!knn f=vector topK=10 earlyTermination=true saturationThreshold=0.989 
patience=10}[1.0, 2.0, 3.0, 4.0]
+?q={!knn f=vector topK=10 earlyTermination=true saturationThreshold=0.989 
patience=10 ef-search=30}[1.0, 2.0, 3.0, 4.0]
 
 `seedQuery`::
 +

Reply via email to