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 defaultDocType
name, this change includes:DocType._doc_type.matches
method is now used to determine whichDocType
should be used for a hit instead of just checking_type
Nested
andObject
field refactoring using newly introducedInnerDoc
class. To define aNested
/Object
field just define theInnerDoc
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 theconnections
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__
).
- use