Skip to content

Commit

Permalink
opensearch uses ES7 API
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Nov 13, 2023
1 parent 7b82436 commit 48f8ef4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/collective/elastic/ingest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
if OPENSEARCH:
version_opensearchpy = version("opensearch-py")
OPENSEARCH_2 = int(version_opensearchpy[0]) <= 2
ELASTICSEARCH_7 = False
ELASTICSEARCH_7 = True
else:
version_elasticsearch = version("elasticsearch")
ELASTICSEARCH_7 = int(version_elasticsearch[0]) <= 7
Expand Down
1 change: 1 addition & 0 deletions src/collective/elastic/ingest/mapping.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from . import ELASTICSEARCH_7
from . import OPENSEARCH
from .elastic import get_ingest_client
from .logging import logger
from copy import deepcopy
Expand Down

0 comments on commit 48f8ef4

Please sign in to comment.