From 2fb3e094a5102c64e18f05b470e890bfaf76549c Mon Sep 17 00:00:00 2001 From: anakin87 Date: Tue, 19 Dec 2023 22:48:05 +0100 Subject: [PATCH] leftover --- .../src/elasticsearch_haystack/document_store.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/integrations/elasticsearch/src/elasticsearch_haystack/document_store.py b/integrations/elasticsearch/src/elasticsearch_haystack/document_store.py index 403006bff..568e78ac5 100644 --- a/integrations/elasticsearch/src/elasticsearch_haystack/document_store.py +++ b/integrations/elasticsearch/src/elasticsearch_haystack/document_store.py @@ -108,8 +108,6 @@ def _search_documents(self, **kwargs) -> List[Document]: if top_k is None and "knn" in kwargs and "k" in kwargs["knn"]: top_k = kwargs["knn"]["k"] - print(top_k) - documents: List[Document] = [] from_ = 0 # Handle pagination @@ -120,8 +118,6 @@ def _search_documents(self, **kwargs) -> List[Document]: **kwargs, ) - print(res) - documents.extend(self._deserialize_document(hit) for hit in res["hits"]["hits"]) from_ = len(documents) @@ -267,7 +263,7 @@ def _bm25_retrieval( "query": query, "fuzziness": fuzziness, "type": "most_fields", - "operator": "AND", + "operator": "OR", } } ]