Tag Archives: api

Elasticsearch 2.2: Profile API (benchmarking queries revisited)

Send to Kindle

speedSome time ago, we described the benchmark API, that was meant to provide us with functionality of checking our queries performance. That API was initially planned for Elasticsearch 1.5, but somehow it was removed and it never showed up – until recently. In Elasticsearch 2.2, we will have a new, experimental profile API introduced that will allow us to get detailed timing informations regarding our queries. Let’s see what we can expect from that API.

Continue reading

Tagged , , , , ,

Reroute API explained

Send to Kindle

routeTill now, we didn’t talk about shard allocation process or ability to move shards around the cluster. If you recall what shard allocation is – the process of allocating shards to nodes which can happen during initial cluster start, during replicas allocation or when nodes are being removed or added to the cluster. However apart from the allocation mechanism control, sometimes it is crucial to be able to cancel shard allocation or move shards around inside the cluster. In order to do that ElasticSearch exposes the reroute API, which allows us to move shards, cancel their allocation and finally force the allocation. You can imagine a situation when you would like to take off a single node from your cluster for maintenance, but you have data on it and first you want to somehow move the data to some other node. This is where the reroute API can come in handy. So now, let’s discuss all the possibilities that give us.

Continue reading

Tagged , , ,

ElasticSearch 0.90 – Search Shards API

Send to Kindle

searchElasticSearch is designed to work with indices that are built of multiple shards and replicas and you probably have such indices in your cluster. Sometimes it may be handy to see which shard will the query be exectued at. Before ElasticSearch 0.90 you could run a query and check the stats to see that, but now we can use the Search Shards API. Let’s look on how we can use this API by using a simple example and queries that does and doesn’t use routing.

Continue reading

Tagged , , ,

ElasticSearch 0.90.1: Updates in bulk API

Send to Kindle

bulkAs the 0.90.0 ElasticSearch is released it is time to look at the features that will became part of the incoming 0.90.1 and the big 1.0 release. The first thing that we payed attention to is the possibility of including partial document updates in the Bulk API request. So in addition to the standard index and delete command the ElasticSearch 0.90.1 will introduce the update one.

Continue reading

Tagged , , , ,