[elasticsearch6] uuid-Fielddata is disabled on text fields by default 에러 해결하기
Elasticsearch 2018. 1. 24. 16:54일래스틱서치에 uuid로 소팅하고 싶은데, 에러가 발생했다.
(쿼리)
curl -XGET 'localhost:9200/google_plus_data/_search?pretty' -H 'Content-Type: application/json' -d'
{
"query": { "match_all": {} },
"size": 10,
"sort": [
{ "@timestamp": "desc" } ,
{ "_uuid": "asc" }
]
}'
(에러)
"reason" : "Fielddata is disabled on text fields by default. Set fielddata=true on [_uuid] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead."
curl -XGET 'localhost:9200/google_plus_data/_search?pretty' -H 'Content-Type: application/json' -d'
{
"query": { "match_all": {} },
"size": 10,
"sort": [
{ "@timestamp": "desc" } ,
{ "_uuid.keyword": "asc" }
]
}'
'Elasticsearch' 카테고리의 다른 글
elasticsearch apm x-pack소개와 UI 캡쳐 화면 (0) | 2018.02.08 |
---|---|
[elasticsearch6] pagination하기 - search_after 사용 (0) | 2018.02.01 |
[elasticsearch5] search_after 예제 (0) | 2017.11.24 |
[elasticsearch5] _id 필드 대신 _uid (0) | 2017.11.22 |
[elasticsearch] No log4j2 configuration file found. Using default configuration: logging only errors to the console 에러 해결하기 (0) | 2017.11.15 |