dadoonet/spring-elasticsearch — pull request #4 by nhuray (2012-04-16 12:36:57+00:00)
Title: Implements Template Support

Hi David,

I'd like to submit a pull request regarding the Index Template.

## Context

Elasticsearch support [index templating](http://www.elasticsearch.org/guide/reference/api/admin-indices-templates.html).

So IMO spring-elasticsearch should support this feature in the same way as mapping.

# Solution

In ```ElasticsearchAbstractClientFactoryBean``` class we have to add template support, so templates configuration will be scan in ```es/_template``` folder during Bean initialization.

To achieve this feature I had to submit a [pull request](https://github.com/elasticsearch/elasticsearch/issues/1861) to Shay (integrated yesterday)

## Changelog

- Upgrade elasticsearch version to 0.19-3-SNAPSHOT to use this [feature](https://github.com/elasticsearch/elasticsearch/issues/1860)
- Rename forceReinit to forceMapping in ElasticsearchAbstractClientFactoryBean
- Add Test ElasticsearchTemplateTest.java