Skip to content

Commit 52bcb77

Browse files
adding knn options
1 parent 4597dec commit 52bcb77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

elasticsearch/dsl/query.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,8 @@ def __init__(
11181118
] = DEFAULT,
11191119
boost: Union[float, "DefaultType"] = DEFAULT,
11201120
_name: Union[str, "DefaultType"] = DEFAULT,
1121+
size=10,
1122+
from_num=0,
11211123
**kwargs: Any,
11221124
):
11231125
super().__init__(
@@ -1132,6 +1134,8 @@ def __init__(
11321134
rescore_vector=rescore_vector,
11331135
boost=boost,
11341136
_name=_name,
1137+
size=size,
1138+
from_num=from_num,
11351139
**kwargs,
11361140
)
11371141

0 commit comments

Comments
 (0)