2.1.0-beta4 is a preview release of Elastisch 2.1 which introduces several new features, primarily in the native client.
Changes between Elastisch 2.1.0-beta3 and 2.1.0-beta4
Aggregations Support in the Native Client
Native client now has support for aggregations.
The API is the same as in the REST client.
Note that ElasticSearch 1.2 has 26 aggregations. Currently only the most commonly used ones are supported but support for more types will be added eventually. The supported types are:
- Extended stats
- Cardinality, value count
- Date Histogram
- Date Range
Multi-Search Support in the Native Client
Native client now has support for multi-search.
The API is the same as in the REST client except that the functions are in the
Extra Options on Upserts
clojurewerkz.elastisch.native.document/upsert now accepts a map of extra options,
e.g. parent document ID:
Terms Query Helper
clojurewerkz.elastisch.query/terms is a newly added alias for
when used with a collection.
Contributed by Martin Klepsch.
Remove Alias Now Works in Native Client
Bug fixed in native client for removing aliases from indices and improved inline documentation. See aliases in the guide.
GH issue: #98.
Changes between Elastisch 2.1.0-beta2 and 2.1.0-beta3
Highlighting Support in Native Client
Native client now supports (most of the) highlighting features the REST client does:
1 2 3 4 5 6
Changes between Elastisch 2.1.0-beta1 and 2.1.0-beta2
Per Connection clj-http Options in REST Client
It is now possible to specify clj-http options for REST API connections, e.g. to specify a timeout:
Source Filtering Support in Native Client
Native client now supports source filtering just like the REST API client:
1 2 3 4
1 2 3 4 5 6
GH issue: #73.
Search Can Return Fields and Source
Previously a search would return either the source document, or specific fields and not both. There are certain circumstances where having both are beneficial, for example when searching for a child document and you want to include the parent ID:
1 2 3
The above would return the parent document ID in the
:_parent field of each hit, but
would not return the document itself. You can now have both by:
Now the parent ID is in the
:_parent field of each hit, and the matching document
will be in
:_source as per a normal search.
Contributed by Ben Ashford.
Full Change Log
Elastisch change log is available on GitHub.
Thank You, Contributors
- Ben Ashford
- Oliver Hine
- Martin Klepsch
for contributing to this release.
Elastisch is a ClojureWerkz Project
- Langohr, a Clojure client for RabbitMQ that embraces the AMQP 0.9.1 model
- Monger, a Clojure MongoDB client for a more civilized age
- Cassaforte, a Clojure Cassandra client
- Titanium, a Clojure graph library
- Neocons, a client for the Neo4J REST API
- Welle, a Riak client with batteries included
- Quartzite, a powerful scheduling library
and several others. If you like Elastisch, you may also like our other projects.