Saturday, 15 May 2010

Rolling Index (Dynamic index name) In Spring Data Elasticsearch -



Rolling Index (Dynamic index name) In Spring Data Elasticsearch -

i have usecase wherein want index document in separate index based on condition. example, want store invoice document index section name suffixed it.

@document(indexname="store_{department}", indexstoretype="invoice") public class invoicees{ // fields @id private string id; @field private string department; }

is possible accomplish using spring data?

if not, planned in coming releases of spring data?

vishal,

currently spring info elasticsearch not back upwards feature. have feature request(pull request) added next release.

have on pull request, https://github.com/spring-projects/spring-data-elasticsearch/pull/56

elasticsearch spring-data

No comments:

Post a Comment