Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -1302,9 +1302,15 @@ def _raw_similarity_search_with_score_by_vector(
# hybrid search without post filter
payload = _default_hybrid_search_query(query_text, embeded_query, k)

response = self.client.transport.perform_request(
method="GET", url=path, body=payload
)
request_args: Dict[str, Any] = {
"method": "GET",
"url": path,
"body": payload,
}
if self.routing:
request_args["params"] = {"routing": self.routing}

response = self.client.transport.perform_request(**request_args)

return [hit for hit in response["hits"]["hits"]]

Expand Down
Loading