elastic

인덱싱 중에...

Sumin Lim 2023. 3. 17. 21:45
반응형

인데스 잘 생성되나 싶었는데

"caused_by"=>{"type"=>"illegal_argument_exception", "reason"=>"Limit of total fields [1000] has been exceeded while adding new fields [1]"}}}}

이런 에러가 뜨면서 진행되지 않았다.

의미는...인덱스 개수 제한이 기본이 1000에 걸린 것 같다.

그래서 찾아보니 세팅값 수정하면 될듯하다.

You can fix the issue by increasing the value of index.mapping.total_fields.limit (default 1000)

index.mapping.total_fields.limit

The maximum number of fields in an index. Field and object mappings, as well as field aliases count towards this limit. The default value is 1000.

To increase total fields limit to 2000, try this

PUT test_index/_settings
{
  "index.mapping.total_fields.limit": 2000
}
curl -s -XPUT http://localhost:9200/test-index/_settings  -H 'Content-Type: application/json' -d '{"index.mapping.total_fields.limit": 2000}'

 

반응형