All Versions
30
Latest Version
Avg Release Cycle
91 days
Latest Release
1013 days ago

Changelog History
Page 2

  • v6.2.0 Changes

    July 03, 2018

    Backwards incompatible change - DocType refactoring.

    ๐Ÿ”จ In 6.2.0 we refactored the DocType class and renamed it to ๐Ÿ‘ Document. The primary motivation for this was the support for types being โฌ‡๏ธ dropped from elasticsearch itself in 7.x - we needed to somehow link the Index and Document classes. To do this we split the options that were previously defined in the class Meta between it and newly introduced class Index. The split is that all options that were tied to mappings (like setting dynamic = MetaField('strict')) remain in class Meta and all options for index definition (like settings, name, or aliases) got ๐Ÿšš moved to the new class 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 for Document which will be removed in 7.x. It does, however, work in the new way which is not fully backwards compatible.

    • Percolator field now expects Query 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 for FacetedSearch. This brought a need to slightly change the semantics of Facet.get_values which now expects the whole data dict for the aggregation, not just the buckets. This is a backwards incompatible change for custom aggregations that redefine that method.
    • โšก๏ธ Document.update now supports refresh kwarg
    • ๐Ÿ‘ฏ DslBase._clone now produces a shallow copy, this means that modifying an existing query can have effects on existing Search objects.
    • 0๏ธโƒฃ Empty Search no longer defaults to match_all query and instead leaves the query key empty. This is backwards incompatible when using suggest.
  • v6.1.0 Changes

    January 09, 2018
    • โœ‚ Removed String field.
    • ๐Ÿ›  Fixed issue with Object/Nested deserialization
  • 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 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__).

  • v5.4.0 Changes

    December 06, 2017
    • 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
  • v5.3.0 Changes

    May 18, 2017
    • fix constant score query definition
    • DateHistogramFacet now works with datetime 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 to Search
    • fix metric aggregation deserialization
    • expose all index-level APIs on Index class
    • adding delete to Search which calls delete_by_query API
  • v5.1.0 Changes

    January 08, 2017
    • 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
  • v5.0.0 Changes

    November 04, 2016

    ๐Ÿ”– Version compatible with elasticsearch 5.0.

    ๐Ÿ’ฅ Breaking changes:

    • String field type has been deprecated in favor of Text and Keyword
    • fields method has been removed in favor of source filtering
  • v2.2.0 Changes

    November 04, 2016
    • accessing missing string fields no longer returned '' but returns None instead.
    • fix issues with bool's | and & operators and minimum_should_match