Skip to content

Commit

Permalink
Merge pull request #166 from biothings/fix_165
Browse files Browse the repository at this point in the history
Fix "Doctype error message on ES7" (#165)
  • Loading branch information
Jerry Zhou committed Jul 15, 2021
2 parents 063c90e + 34adcbb commit 3c56695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biothings/utils/es.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def _get_bulk(doc):

def get_mapping(self):
"""return the current index mapping"""
m = self._es.indices.get_mapping(index=self._index, doc_type=self._doc_type)
m = self._es.indices.get_mapping(index=self._index, doc_type=self._doc_type, include_type_name=True)
return m[self._index]["mappings"]

def update_mapping(self, m):
Expand Down

0 comments on commit 3c56695

Please sign in to comment.