mappings

    엘라스틱서치 인덱스 Mapping 과 Properties 정리

    엘라스틱서치에서 인덱스는 RDB의 테이블과 비슷한 역할을 한다. 또한 엘라스틱서치는 기본적으로 스키마리스이나, 실제 운용하는데 있어서는 mapping을 통해 스키마를 정의 하여 사용한다. 인덱스 추가 및 스키마 정의를 위해 인덱스 API 및 매핑API 를 사용 한다. 인덱스 추가 PUT /movie { "settings": { "number_of_shards": 3, "number_of_replicas": 2 }, "mappings": { "properties": { "movieCd": {"type": "integer"}, "movieNm": {"type": "text"}, "movieNmEn": {"type": "text"}, "prdtYear": {"type": "integer"}, "openDt":..