class_docstr: The HitMeta class is used to manage and access metadata of a document.
  
  This class inherits from the AttributeDict class and provides
  attribute-like access to its elements.
class_docstr_tok: ["The","HitMeta","class","is","used","to","manage","and","access","metadata","of","a","document",".","This","class","inherits","from","the","AttributeDict","class","and","provides","attribute-like","access","to","its","elements","."]
code: def __init__(self, document, exclude=("_source", "_fields")):
      d = {
          k[1:] if k.startswith("_") else k: v
          for (k, v) in document.items()
          if k not in exclude
      }
      if "type" in d:
          # make sure we are consistent everywhere in python
          d["doc_type"] = d.pop("type")
      super().__init__(d)
  
imports: from __future__ import annotations
  from typing import Iterator
label_desc: Use image node_id 1 to create a new HitMeta object from inherited base classes: AttributeDict with example: obj = HitMeta(document, exclude)