elasticsearch-haystack 0.7.1__py3-none-any.whl → 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of elasticsearch-haystack might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: elasticsearch-haystack
3
- Version: 0.7.1
3
+ Version: 1.0.0
4
4
  Summary: Haystack 2.x Document Store for ElasticSearch
5
5
  Project-URL: Documentation, https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/elasticsearch#readme
6
6
  Project-URL: Issues, https://github.com/deepset-ai/haystack-core-integrations/issues
@@ -1,10 +1,10 @@
1
1
  haystack_integrations/components/retrievers/elasticsearch/__init__.py,sha256=cSJBsYjz_T4kK-M-auAHVUnYIcgUqqwwQe_hsF0_IG4,307
2
- haystack_integrations/components/retrievers/elasticsearch/bm25_retriever.py,sha256=4kCb10S073IHXnBxP4gVU2bxeYlqQbK6FhV8aTg3wVs,5850
3
- haystack_integrations/components/retrievers/elasticsearch/embedding_retriever.py,sha256=9at7bGJt4ZLSwD4kmTKYGLc7bHAn8zWshx3-sZgDU0g,5991
2
+ haystack_integrations/components/retrievers/elasticsearch/bm25_retriever.py,sha256=XA6UiNFb59CMM5LSoPmNDe3IzZ7ty7HViSaU2ZT4--w,5851
3
+ haystack_integrations/components/retrievers/elasticsearch/embedding_retriever.py,sha256=ZL9kHi6tCzks1_GXoOIRVLcN4BWnaMqN6t-JcwdTfao,5992
4
4
  haystack_integrations/document_stores/elasticsearch/__init__.py,sha256=YTfu94dtVUBogbJFr1aJrKuaI6-Bw9VuHfPoyU7M8os,207
5
- haystack_integrations/document_stores/elasticsearch/document_store.py,sha256=H5aqriF7rFYYpqALqAhvBSL41jzGtOxa-vSIPcLgXGw,18719
5
+ haystack_integrations/document_stores/elasticsearch/document_store.py,sha256=-F6Ij1tZ6WfUyep49X6t0q40NIcEmwf1XhYY2BgFkZg,18788
6
6
  haystack_integrations/document_stores/elasticsearch/filters.py,sha256=L1tN7YCIDuNdhGrBQdPoqXFk37x__2-K038xZ6PRdNQ,9923
7
- elasticsearch_haystack-0.7.1.dist-info/METADATA,sha256=G6FdW5Hm8aNTFKon36o6RoigWXUNY2IrozKQUXksTg8,2168
8
- elasticsearch_haystack-0.7.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
9
- elasticsearch_haystack-0.7.1.dist-info/licenses/LICENSE,sha256=_M2kulivnaiTHiW-5CRlZrPmH47tt04pBgAgeDvfYi4,11342
10
- elasticsearch_haystack-0.7.1.dist-info/RECORD,,
7
+ elasticsearch_haystack-1.0.0.dist-info/METADATA,sha256=L4XxIMl6z2IQkNQ-7Pe3cXbzcsv5gmljEnZsTMolwPo,2168
8
+ elasticsearch_haystack-1.0.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
9
+ elasticsearch_haystack-1.0.0.dist-info/licenses/LICENSE,sha256=_M2kulivnaiTHiW-5CRlZrPmH47tt04pBgAgeDvfYi4,11342
10
+ elasticsearch_haystack-1.0.0.dist-info/RECORD,,
@@ -7,6 +7,7 @@ from haystack import component, default_from_dict, default_to_dict
7
7
  from haystack.dataclasses import Document
8
8
  from haystack.document_stores.types import FilterPolicy
9
9
  from haystack.document_stores.types.filter_policy import apply_filter_policy
10
+
10
11
  from haystack_integrations.document_stores.elasticsearch.document_store import ElasticsearchDocumentStore
11
12
 
12
13
 
@@ -7,6 +7,7 @@ from haystack import component, default_from_dict, default_to_dict
7
7
  from haystack.dataclasses import Document
8
8
  from haystack.document_stores.types import FilterPolicy
9
9
  from haystack.document_stores.types.filter_policy import apply_filter_policy
10
+
10
11
  from haystack_integrations.document_stores.elasticsearch.document_store import ElasticsearchDocumentStore
11
12
 
12
13
 
@@ -12,7 +12,6 @@ from haystack import default_from_dict, default_to_dict
12
12
  from haystack.dataclasses import Document
13
13
  from haystack.document_stores.errors import DocumentStoreError, DuplicateDocumentError
14
14
  from haystack.document_stores.types import DuplicatePolicy
15
- from haystack.utils.filters import convert
16
15
  from haystack.version import __version__ as haystack_version
17
16
 
18
17
  from elasticsearch import Elasticsearch, helpers # type: ignore[import-not-found]
@@ -224,7 +223,8 @@ class ElasticsearchDocumentStore:
224
223
  :returns: List of `Document`s that match the filters.
225
224
  """
226
225
  if filters and "operator" not in filters and "conditions" not in filters:
227
- filters = convert(filters)
226
+ msg = "Invalid filter syntax. See https://docs.haystack.deepset.ai/docs/metadata-filtering for details."
227
+ raise ValueError(msg)
228
228
 
229
229
  query = {"bool": {"filter": _normalize_filters(filters)}} if filters else None
230
230
  documents = self._search_documents(query=query)