Siddhi Store Elasticsearch 3.1.0 Release
This Release is compatible with Siddhi 5.x.x
Overview
Siddhi Store Elasticsearch 3.1.0 release contains some improvements related to type mapping support and bug fixes.
Highlights
- In this release introduces a new annotation called TypeMappings. Please refer example config below:
@Store(type="elasticsearch", @TypeMappings(requestTimestamp="date", latitude="geo_point", longitude="geo_point"), elasticsearch.member.list="http://localhost:9200",username="elastic", password="changeme", bulk.actions="10000", bulk.size="5")
define table ESTable (meta_clientType string, requestTimestamp long, latitude double, longitude double);
Here we can specify the list of type mappings.
In this example config, 'requestTimestamp' attribute is mapped to type 'date', 'latitude' attribute is being mapped to type 'geo_point' and so on.
Note:
If above annotation is used then need to re-index all the existing data after updating the mapping type. Otherwise we would see the following warning in Kibana when we try to update the index pattern.
"Mapping conflict . A field is defined as several types (string, integer, etc) across the indices that match this pattern. You may still be able to use these conflict fields in parts of Kibana, but they will be unavailable for functions that require Kibana to know their type. Correcting this issue will require reindexing your data."
Bug Fixes
createIndex()
method fails withElasticsearchStatusException
(#23)- Fix indexname validations when creating index (#25)
Complete Changes
Please find the complete changes here