Skip to content

Commit

Permalink
Documentation fixes (#1769) (#1789)
Browse files Browse the repository at this point in the history
(cherry picked from commit cdb14b6)

Co-authored-by: Miguel Grinberg <miguel.grinberg@gmail.com>
  • Loading branch information
github-actions[bot] and miguelgrinberg committed Apr 29, 2024
1 parent 6b4bd55 commit 891c2fe
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
8 changes: 7 additions & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,28 @@ The :ref:`Asynchronous API <async_api>` classes are documented separately.
.. py:module:: elasticsearch_dsl
.. autoclass:: Search
:inherited-members:
:members:

.. autoclass:: MultiSearch
:inherited-members:
:members:

.. autoclass:: Document
:inherited-members:
:members:

.. autoclass:: Index
:inherited-members:
:members:

.. autoclass:: FacetedSearch
:inherited-members:
:members:

.. autoclass:: UpdateByQuery
:members:
:inherited-members:
:members:

Mappings
--------
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ to the ``Elasticsearch`` class from ``elasticsearch-py``.

To see all
possible configuration options refer to the `documentation
<http://elasticsearch-py.readthedocs.io/en/master/api.html#elasticsearch>`_.
<https://elasticsearch-py.readthedocs.io/en/latest/api/elasticsearch.html>`_.

Multiple clusters
-----------------
Expand Down
4 changes: 2 additions & 2 deletions elasticsearch_dsl/_async/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ async def update(
:arg return_doc_meta: set to ``True`` to return all metadata from the
index API call instead of only the operation result
:return operation result noop/updated
:return: operation result noop/updated
"""
body = {
"doc_as_upsert": doc_as_upsert,
Expand Down Expand Up @@ -346,7 +346,7 @@ async def save(
Any additional keyword arguments will be passed to
``Elasticsearch.index`` unchanged.
:return operation result created/updated
:return: operation result created/updated
"""
if validate:
self.full_clean()
Expand Down
4 changes: 2 additions & 2 deletions elasticsearch_dsl/_sync/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def update(
:arg return_doc_meta: set to ``True`` to return all metadata from the
index API call instead of only the operation result
:return operation result noop/updated
:return: operation result noop/updated
"""
body = {
"doc_as_upsert": doc_as_upsert,
Expand Down Expand Up @@ -344,7 +344,7 @@ def save(
Any additional keyword arguments will be passed to
``Elasticsearch.index`` unchanged.
:return operation result created/updated
:return: operation result created/updated
"""
if validate:
self.full_clean()
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch_dsl/search_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def params(self, **kwargs):
"""
Specify query params to be used when executing the search. All the
keyword arguments will override the current values. See
https://elasticsearch-py.readthedocs.io/en/master/api.html#elasticsearch.Elasticsearch.search
https://elasticsearch-py.readthedocs.io/en/latest/api/elasticsearch.html#elasticsearch.Elasticsearch.search
for all available parameters.
Example::
Expand Down

0 comments on commit 891c2fe

Please sign in to comment.