elasticsearch-dsl-py v6.0.0 Release Notes

Release Date: 2018-01-01 // over 6 years ago
  • 🚀 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__).