Elasticsearch-dsl

Latest version: v8.13.1

Safety actively analyzes 630305 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 6

6.0.1

------------------

Fixing wheel package for Python 2.7 (803)

6.0.0

------------------

Backwards incompatible release compatible with elasticsearch 6.0, changes
include:

* use ``doc`` as default ``DocType`` name, this change includes:
* ``DocType._doc_type.matches`` method is now used to determine which
``DocType`` should be used for a hit instead of just checking ``_type``
* ``Nested`` and ``Object`` field refactoring using newly introduced
``InnerDoc`` class. To define a ``Nested``/``Object`` field just define the
``InnerDoc`` subclass and then use it when defining the field::

class Comment(InnerDoc):
body = Text()
created_at = Date()

class Blog(DocType):
comments = Nested(Comment)

* methods on ``connections`` singleton are now exposed on the ``connections``
module directly.
* field values are now only deserialized when coming from elasticsearch (via
``from_es`` method) and not when assigning values in python (either by
direct assignment or in ``__init__``).

5.4.0

------------------
* fix ``ip_range`` aggregation and rename the class to ``IPRange``.
``Iprange`` is kept for bw compatibility
* fix bug in loading an aggregation with meta data from dict
* add support for ``normalizer`` parameter of ``Keyword`` fields
* ``IndexTemplate`` can now be specified using the same API as ``Index``
* ``Boolean`` field now accepts ``"false"`` as ``False``

5.3.0

------------------
* fix constant score query definition
* ``DateHistogramFacet`` now works with ``datetime`` objects
* respect ``__`` in field names when creating queries from dict

5.2.0

------------------
* make sure all response structers are pickleable (for caching)
* adding ``exclude`` to ``Search``
* fix metric aggregation deserialization
* expose all index-level APIs on ``Index`` class
* adding ``delete`` to ``Search`` which calls ``delete_by_query`` API

5.1.0

------------------
* Renamed ``Result`` and ``ResultMeta`` to ``Hit`` and ``HitMeta`` respectively
* ``Response`` now stores ``Search`` which it gets as first arg to ``__init__``
* aggregation results are now wrapped in classes and properly deserialized
* ``Date`` fields now allow for numerical timestamps in the java format (in millis)
* Added API documentation
* replaced generated classes with manually created

Page 4 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.