Skip to content

Latest commit

 

History

History
32 lines (30 loc) · 530 Bytes

README.md

File metadata and controls

32 lines (30 loc) · 530 Bytes

ELS-APP

Simple Spring Boot Appliacation with Spring Data ElasticSearch

Configure ElasticSearch Indices

To create an index in ElasticSearch using Kibana DevTool

PUT /documents-000001
{
  "aliases": {
    "documents": {}
  },
  "mappings": {
    "key-doc": {
      "properties": {
        "key": { "type": "keyword" },
        "value": { "type": "keyword" }
      }
    }
  }
}

To rollover index using some cronJob:

POST /documents/_rollover
{
  "conditions": {
    "max_age":   "7d",
    "max_docs":  5
  }
}