Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions elasticsearch/_async/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3515,6 +3515,7 @@ async def search(
profile: t.Optional[bool] = None,
q: t.Optional[str] = None,
query: t.Optional[t.Mapping[str, t.Any]] = None,
rank: t.Optional[t.Mapping[str, t.Any]] = None,
request_cache: t.Optional[bool] = None,
rescore: t.Optional[
t.Union[
Expand Down Expand Up @@ -3647,6 +3648,7 @@ async def search(
:param profile:
:param q: Query in the Lucene query string syntax
:param query: Defines the search definition using the Query DSL.
:param rank: Defines the Reciprocal Rank Fusion (RRF) to use
:param request_cache: Specify if request cache should be used for this request
or not, defaults to index level setting
:param rescore:
Expand Down Expand Up @@ -3795,6 +3797,8 @@ async def search(
__query["q"] = q
if query is not None:
__body["query"] = query
if rank is not None:
__body["rank"] = rank
if request_cache is not None:
__query["request_cache"] = request_cache
if rescore is not None:
Expand Down
4 changes: 4 additions & 0 deletions elasticsearch/_sync/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3513,6 +3513,7 @@ def search(
profile: t.Optional[bool] = None,
q: t.Optional[str] = None,
query: t.Optional[t.Mapping[str, t.Any]] = None,
rank: t.Optional[t.Mapping[str, t.Any]] = None,
request_cache: t.Optional[bool] = None,
rescore: t.Optional[
t.Union[
Expand Down Expand Up @@ -3645,6 +3646,7 @@ def search(
:param profile:
:param q: Query in the Lucene query string syntax
:param query: Defines the search definition using the Query DSL.
:param rank: Defines the Reciprocal Rank Fusion (RRF) to use
:param request_cache: Specify if request cache should be used for this request
or not, defaults to index level setting
:param rescore:
Expand Down Expand Up @@ -3793,6 +3795,8 @@ def search(
__query["q"] = q
if query is not None:
__body["query"] = query
if rank is not None:
__body["rank"] = rank
if request_cache is not None:
__query["request_cache"] = request_cache
if rescore is not None:
Expand Down