Skip to content

Commit a4e2731

Browse files
update schema version
1 parent 9308f93 commit a4e2731

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

elasticsearch/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
# under the License.
1717

1818
__versionstr__ = "9.1.1"
19-
__es_specification_commit__ = "76b70737591e72220c94ac06d51c8d6c76ce7d78"
19+
__es_specification_commit__ = "cc623e3b52dd3dfd85848ee992713d37da020bfb"

elasticsearch/dsl/query.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,8 @@ class Knn(Query):
10791079
a query_vector_builder or query_vector, but not both.
10801080
:arg num_candidates: The number of nearest neighbor candidates to
10811081
consider per shard
1082+
:arg visit_percentage: The percentage of vectors to explore per shard
1083+
while doing knn search with bbq_disk
10821084
:arg k: The final number of nearest neighbors to return as top hits
10831085
:arg filter: Filters for the kNN search query
10841086
:arg similarity: The minimum similarity for a vector to be considered
@@ -1107,6 +1109,7 @@ def __init__(
11071109
"types.QueryVectorBuilder", Dict[str, Any], "DefaultType"
11081110
] = DEFAULT,
11091111
num_candidates: Union[int, "DefaultType"] = DEFAULT,
1112+
visit_percentage: Union[float, "DefaultType"] = DEFAULT,
11101113
k: Union[int, "DefaultType"] = DEFAULT,
11111114
filter: Union[Query, Sequence[Query], "DefaultType"] = DEFAULT,
11121115
similarity: Union[float, "DefaultType"] = DEFAULT,
@@ -1122,6 +1125,7 @@ def __init__(
11221125
query_vector=query_vector,
11231126
query_vector_builder=query_vector_builder,
11241127
num_candidates=num_candidates,
1128+
visit_percentage=visit_percentage,
11251129
k=k,
11261130
filter=filter,
11271131
similarity=similarity,

0 commit comments

Comments
 (0)