Index Template

    Elasticsearch Index Template

    인덱스 템플릿 인덱스를 생성할 때 특정 네이밍 규칙에 따라 인덱스 설정을 자동으로 적용하고 싶은 경우에 사용한다. wildcard를 이용해 인덱스가 생성될 때 자동으로 적용할 수 있다. PUT _template/my_index_template { "index_patterns": ["test*", "person-*"], "settings": { "number_of_shards": 1 }, "aliases": { "my_alias": {}, "my_alias2": { "filter": { "term": {"user.id": "kimchy"} }, "routing": "shard-1 }, "{index}-alias": {} }, "mappings": { } } index_patterns: 템플릿이 적용 될 인..