Changelog History
Page 2
-
v6.2.0 Changes
July 03, 2018Backwards incompatible change -
DocType
refactoring.🔨 In
6.2.0
we refactored theDocType
class and renamed it to 👍Document
. The primary motivation for this was the support for types being ⬇️ dropped from elasticsearch itself in7.x
- we needed to somehow link theIndex
andDocument
classes. To do this we split the options that were previously defined in theclass Meta
between it and newly introducedclass Index
. The split is that all options that were tied to mappings (like settingdynamic = MetaField('strict')
) remain inclass Meta
and all options for index definition (likesettings
,name
, oraliases
) got 🚚 moved to the newclass Index
.👀 You can see some examples of the new functionality in the
examples
📚 directory. Documentation has been updated to reflect the new API.🚚
DocType
is now just an alias forDocument
which will be removed in7.x
. It does, however, work in the new way which is not fully backwards compatible.Percolator
field now expectsQuery
objects as values- you can no longer access meta fields on a
Document
instance by specifying._id
or similar. Instead all access needs to happen via the.meta
attribute. - Implemented
NestedFacet
forFacetedSearch
. This brought a need to slightly change the semantics ofFacet.get_values
which now expects the whole data dict for the aggregation, not just thebuckets
. This is a backwards incompatible change for custom aggregations that redefine that method. - ⚡️
Document.update
now supportsrefresh
kwarg - 👯
DslBase._clone
now produces a shallow copy, this means that modifying an existing query can have effects on existingSearch
objects. - 0️⃣ Empty
Search
no longer defaults tomatch_all
query and instead leaves thequery
key empty. This is backwards incompatible when usingsuggest
.
-
v6.1.0 Changes
January 09, 2018- ✂ Removed
String
field. - 🛠 Fixed issue with
Object
/Nested
deserialization
- ✂ Removed
-
v6.0.1 Changes
January 02, 2018🛠 Fixing wheel package for Python 2.7 (#803)
-
v6.0.0 Changes
January 01, 2018🚀 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
-
v5.4.0 Changes
December 06, 2017- fix
ip_range
aggregation and rename the class toIPRange
.Iprange
is kept for bw compatibility - fix bug in loading an aggregation with meta data from dict
- add support for
normalizer
parameter ofKeyword
fields IndexTemplate
can now be specified using the same API asIndex
Boolean
field now accepts"false"
asFalse
- fix
-
v5.3.0 Changes
May 18, 2017- fix constant score query definition
DateHistogramFacet
now works withdatetime
objects- respect
__
in field names when creating queries from dict
-
v5.2.0 Changes
March 26, 2017- make sure all response structers are pickleable (for caching)
- adding
exclude
toSearch
- fix metric aggregation deserialization
- expose all index-level APIs on
Index
class - adding
delete
toSearch
which callsdelete_by_query
API
-
v5.1.0 Changes
January 08, 2017- Renamed
Result
andResultMeta
toHit
andHitMeta
respectively Response
now storesSearch
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
- Renamed
-
v5.0.0 Changes
November 04, 2016🔖 Version compatible with elasticsearch 5.0.
💥 Breaking changes:
String
field type has been deprecated in favor ofText
andKeyword
fields
method has been removed in favor ofsource
filtering
-
v2.2.0 Changes
November 04, 2016- accessing missing string fields no longer returned
''
but returnsNone
instead. - fix issues with bool's
|
and&
operators andminimum_should_match
- accessing missing string fields no longer returned