diff --git a/elasticsearch_dsl/response/hit.py b/elasticsearch_dsl/response/hit.py
index 4093f01..29a6d95 100644
--- a/elasticsearch_dsl/response/hit.py
+++ b/elasticsearch_dsl/response/hit.py
@@ -12,6 +12,14 @@ class Hit(AttrDict):
         # assign meta as attribute and not as key in self._d_
         super(AttrDict, self).__setattr__('meta', HitMeta(document))
 
+    def __getstate__(self):
+        # add self.meta since it is not in self.__dict__
+        return super(Hit, self).__getstate__() + (self.meta, )
+
+    def __setstate__(self, state):
+        super(AttrDict, self).__setattr__('meta', state[-1])
+        super(Hit, self).__setstate__(state[:-1])
+
     def __dir__(self):
         # be sure to expose meta in dir(self)
         return super(Hit, self).__dir__() + ['meta']

Hit objects are not pickleable
`Hit` obejcts are not properly serialized when using `pickle` because the `meta` member is not available after loading the object using `pickle.load`. This happens because of the [way ](https://github.com/elastic/elasticsearch-dsl-py/blob/master/elasticsearch_dsl/response/hit.py#L13) the `meta` member of the `Hit` class is added in the `__init__` method. Anyways, I have fixed it by adding `__getstate__` and `__setstate__` methods to `Hit` that make sure we don't lose the metadata. I have the fix on a local fork and would like to open a PR :)
diff --git a/test_elasticsearch_dsl/test_result.py b/test_elasticsearch_dsl/test_result.py
index e4faf88..e6f46da 100644
--- a/test_elasticsearch_dsl/test_result.py
+++ b/test_elasticsearch_dsl/test_result.py
@@ -32,6 +32,7 @@ def test_hit_is_pickleable(dummy_response):
     hits = pickle.loads(pickle.dumps(res.hits))
 
     assert hits == res.hits
+    assert hits[0].meta == res.hits[0].meta
 
 def test_response_stores_search(dummy_response):
     s = Search()

pip install -e .[develop]
parse_log_pytest
requirements.txt
pytest pytest-cov
3.6
requirements/base.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
alabaster==0.7.13
attrs==22.2.0
Babel==2.11.0
certifi==2021.5.30
charset-normalizer==2.0.12
coverage==4.5.4
docutils==0.18.1
elasticsearch==6.8.2
-e git+https://github.com/elastic/elasticsearch-dsl-py.git@2ae3c8bd59996a1e2f42f0285196d3a8b71f821d#egg=elasticsearch_dsl
idna==3.10
imagesize==1.4.1
importlib-metadata==4.8.3
iniconfig==1.1.1
Jinja2==3.0.3
MarkupSafe==2.0.1
mock==5.2.0
packaging==21.3
pluggy==1.0.0
py==1.11.0
Pygments==2.14.0
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==2.10.1
python-dateutil==2.9.0.post0
pytz==2025.2
requests==2.27.1
six==1.17.0
snowballstemmer==2.2.0
Sphinx==5.3.0
sphinx-rtd-theme==2.0.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jquery==4.1
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
tomli==1.2.3
typing_extensions==4.1.1
urllib3==1.26.20
zipp==3.6.0

name: elasticsearch-dsl-py
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - alabaster==0.7.13
      - attrs==22.2.0
      - babel==2.11.0
      - charset-normalizer==2.0.12
      - coverage==4.5.4
      - docutils==0.18.1
      - elasticsearch==6.8.2
      - idna==3.10
      - imagesize==1.4.1
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - jinja2==3.0.3
      - markupsafe==2.0.1
      - mock==5.2.0
      - packaging==21.3
      - pluggy==1.0.0
      - py==1.11.0
      - pygments==2.14.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-cov==2.10.1
      - python-dateutil==2.9.0.post0
      - pytz==2025.2
      - requests==2.27.1
      - six==1.17.0
      - snowballstemmer==2.2.0
      - sphinx==5.3.0
      - sphinx-rtd-theme==2.0.0
      - sphinxcontrib-applehelp==1.0.2
      - sphinxcontrib-devhelp==1.0.2
      - sphinxcontrib-htmlhelp==2.0.0
      - sphinxcontrib-jquery==4.1
      - sphinxcontrib-jsmath==1.0.1
      - sphinxcontrib-qthelp==1.0.3
      - sphinxcontrib-serializinghtml==1.1.5
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - urllib3==1.26.20
      - zipp==3.6.0
prefix: /opt/conda/envs/elasticsearch-dsl-py

test_elasticsearch_dsl/test_result.py::test_hit_is_pickleable
test_elasticsearch_dsl/test_result.py::test_agg_response_is_pickleable test_elasticsearch_dsl/test_result.py::test_response_is_pickleable test_elasticsearch_dsl/test_result.py::test_response_stores_search test_elasticsearch_dsl/test_result.py::test_attribute_error_in_hits_is_not_hidden test_elasticsearch_dsl/test_result.py::test_interactive_helpers test_elasticsearch_dsl/test_result.py::test_empty_response_is_false test_elasticsearch_dsl/test_result.py::test_len_response test_elasticsearch_dsl/test_result.py::test_iterating_over_response_gives_you_hits test_elasticsearch_dsl/test_result.py::test_hits_get_wrapped_to_contain_additional_attrs test_elasticsearch_dsl/test_result.py::test_hits_provide_dot_and_bracket_access_to_attrs test_elasticsearch_dsl/test_result.py::test_slicing_on_response_slices_on_hits test_elasticsearch_dsl/test_result.py::test_aggregation_base test_elasticsearch_dsl/test_result.py::test_metric_agg_works test_elasticsearch_dsl/test_result.py::test_aggregations_can_be_iterated_over test_elasticsearch_dsl/test_result.py::test_aggregations_can_be_retrieved_by_name test_elasticsearch_dsl/test_result.py::test_bucket_response_can_be_iterated_over test_elasticsearch_dsl/test_result.py::test_bucket_keys_get_deserialized
elasticsearch_dsl/response/hit.py
elasticsearch_dsl/response/hit.py