6.x/8. Breaking Changes

v6.4-01. API changes

drscg 2018. 8. 24. 17:35

Field capabilities request formatedit

In the past, fields could be provided either as a parameter, or as part of the request body. Specifying fields in the request body is now deprecated, and instead they should always be supplied through a request parameter. In 7.0.0, the field capabilities API will not accept fieldssupplied in the request body.

이전에는, fields 를 매개변수 또는 request body로 제공할 수 있었다. 이제 fields 를 request body에 지정하는 것은 deprecate되었고, 대신 항상 request 매개변수로 제공되어야 한다. 7.0.0 에서, field 관련 API는 request body에서 fields 를 거부할 것이다.

Copying source settings during shrink/split operationsedit

In prior versions of Elasticsearch, resize operations (shrink/split) would only copy index.analysisindex.similarity, and index.sort settings from the source index. Elasticsearch 6.4.0 introduces a request parameter copy_settings which will copy all index settings from the source except for non-copyable index settings. This parameter defaults to false in 6.x, is immediately deprecated in 6.4.0, will only be able to be set to true in 8.x, and will be removed in 9.0.0. Note than when this parameter is used it means that all copyable settings will be copied; this includes the index blocks that must be put in place for a resize operation, and any allocation settings put in place in preparation for executing the resize operation. If you use this parameter, you will either have to follow up the operation with a request to adjust to the desired settings on the target index, or send the desired value of these settings with the resize operation.

이전 버전의 Elasticsearch에서, 크기 조정 작업(shrink/split)은 index.analysisindex.similarityindex.sort 설정만을 복사했다. Elasticsearch 6.4.0 에서는 source에서 복사가 불가능한 index 설정을 제외한 모든 index 설정을 복사하는 request 매개변수 copy_settings 를 도입하였다. 6.x에서 이 매개변수의 기본값은 false 인데, 6.4.0 에서는 즉시 deprecate되었고, 8.x 에서는 true 만 설정할 수 있을 것이고, 9.0.0 에서는 제거될 것이다. 이 매개변수를 사용하는 것은 모든 복사 가능한 설정이 복사된다는 것을 의미한다. 여기에는 크기 조정 작업을 위해 준비해야 하는 index block과 크기 조정 작업을 실행하기 위해 준비해야 하는 모든 allocation 설정이 포함된다. 이 매개변수를 사용하는 경우, 대상 index에서 원하는 설정으로 조정하기 위한 request로 후속 작업을 수행하거나, 크기 조정 작업으로 이들 설정의 원하는 값을 전송해야 한다.


'6.x > 8. Breaking Changes' 카테고리의 다른 글

v6.3.03. Settings changes  (0) 2018.06.15
v6.3-02. Plugins changes  (0) 2018.06.15
v6.3-01. API changes  (0) 2018.06.15
v6.3 Breaking changes  (0) 2018.06.15
v6.2-03.Rollover alias  (0) 2018.06.15