Changelog¶
2.2.0 (2016-11-04)¶
- accessing missing string fields no longer returnd
''but returnsNoneinstead.- fix issues with bool’s
|and&operators andminimum_should_match
2.1.0 (2016-06-29)¶
inner_hitsare now also wrapped inResponse+operator is deprecated,.query()now uses&to combine queries- added
mgetmethod toDocType- fixed validation for “empty” values like
''and[]
2.0.0 (2016-02-18)¶
Compatibility with Elasticsearch 2.x:
- Filters have been removed and additional queries have been added. Instead of
Fobjects you can now useQ.Search.filteris now just a shortcut to add queries in filter context- support for pipeline aggregations added
Backwards incompatible changes:
- list of analysis objects and classes was removed, any string used as tokenizer, char or token filter or analyzer will be treated as a builtin
- internal method
Field.to_pythonhas been renamed todeserializeand an optional serialization mechanic for fields has been added.- Custom response class is now set by
response_classmethod instead of a kwarg toSearch.execute
Other changes:
FacetedSearchnow supports pagination via slicing
0.0.10 (2016-01-24)¶
Searchcan now be iterated over to get back hitsSearchnow caches responses from ElasticsearchDateHistogramFacetnow defaults to returning empty intervalsSearchno longer accepts positional parameters- Experimental
MultiSearchAPI- added option to talk to
_suggestendpoint (execute_suggest)
0.0.9 (2015-10-26)¶
FacetedSearchnow uses its ownFacetclass instead of built in aggregations
0.0.8 (2015-08-28)¶
0.0.5and0.0.6was released with broken .tar.gz on pypi, just a build fix
0.0.5 (2015-08-27)¶
- added support for (index/search)_analyzer via #143, thanks @wkiser!
- even keys accessed via
['field']onAttrDictwill be wrapped inAttr[Dict|List]for consistency- Added a convenient option to specify a custom
doc_classto wrap inner/Nested documentsblankoption has been removedAttributeErroris no longer raised when accessing an empty field.- added
requiredflag to fields and validation hooks to fields and (sub)documents- removed
getmethod fromAttrDict. Usegetattr(d, key, default)instead.- added
FacetedSearchfor easy declarative faceted navigation
0.0.4 (2015-04-24)¶
- Metadata fields (such as id, parent, index, version etc) must be stored (and retrieved) using the
metaattribute (#58) on bothResultandDocTypeobjects or using their underscored variants (_id,_parentetc)- query on Search can now be directly assigned
suggestmethod added toSearchSearch.doc_typenow acceptsDocTypesubclasses directlyProperties.propertymethod renamed tofieldfor consistency- Date field now raises
ValidationExceptionon incorrect data
0.0.3 (2015-01-23)¶
Added persistence layer (Mapping and DocType), various fixes and
improvements.
0.0.2 (2014-08-27)¶
Fix for python 2
0.0.1 (2014-08-27)¶
Initial release.