인덱스 매핑을 할 때, alias
를 통해 대체 이름을 정의할 수 있다.
PUT trips
{
"mappings": {
"properties": {
"distance": {
"type": "long"
},
"route_length_miles": {
"type": "alias",
"path": "distance"
},
"transit_mode": {
"type": "keyword"
}
}
}
}
_source
필터링에 별칭을 넣을 수 없다.참고 : https://www.elastic.co/guide/en/elasticsearch/reference/current/field-alias.html