docs: def create_mapping(self):
          """Create the mappings in elasticsearch."""
          try:
              self.document_class.init()
              self._mapping_created = True
          except IllegalOperation as error:
              if error.args[0].startswith('You cannot update analysis configuration'):
                  # Ignore mapping update errors, which are thrown even when the analysis
                  # configuration stays the same.
                  # TODO: Remove this when https://github.com/elastic/elasticsearch-dsl-py/pull/272 is merged.
                  return
  
              raise