Skip to content

Commit

Permalink
Remove unsupported doc_type property from elasticsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
8R0WNI3 committed Nov 14, 2024
1 parent 193b7f7 commit 2e091da
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ccc/elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,6 @@ def store_document(
):
ci.util.check_type(index, str)
ci.util.check_type(body, dict)
if 'doc_type' in kwargs:
raise ValueError(
'''
doc_type attribute has been deprecated - see:
https://www.elastic.co/guide/en/elasticsearch/reference/6.0/removal-of-types.html
'''
)

if inject_metadata and _metadata_dict():
md = _metadata_dict()
Expand All @@ -129,7 +122,6 @@ def store_document(
try:
return self._api.index(
index=index,
doc_type='_doc',
document=body,
*args,
**kwargs,
Expand Down

0 comments on commit 2e091da

Please sign in to comment.