Index templates use index_patterns
instead of template
edit
Previously templates expressed the indices that they should match using a glob style pattern in the template
field. They should now use the index_patterns
field instead. As the name implies you can define multiple glob style patterns in an array but for convenience defining a single pattern as a bare string is also supported. So both of these examples are valid:
이전에는 template은 template
field에서 glob style pattern을 사용하여 일치해야 할 index를 표현했다. 이제 그들은 대신 index_patterns
field를 사용해야 한다. 이름에서 알 수 있듯이 배열에 다수의 glob style pattern을 정의할 수 있지만, 편의상 단일 pattern을 기본적인 문자열로 정의하는 것도 지원된다. 따라서 아래 두 예제 모두 유효하다.
PUT _template/template_1 { "index_patterns": ["te*", "bar*"], "settings": { "number_of_shards": 1 } } PUT _template/template_2 { "index_patterns": "te*", "settings": { "number_of_shards": 1 } }
Shadow Replicas have been removededit
Shadow replicas don’t see enough usage, and have been removed. This includes the following settings:
shadow replica는 많이 사용되지 않아 제거되었다. 여기에는 다음과 같은 설정이 포함된다.
index.shared_filesystem
index.shadow_replicas
node.add_lock_id_to_custom_path
Open/Close index API allows wildcard expressions that match no indices by defaultedit
The default value of the allow_no_indices
option for the Open/Close index API has been changed from false
to true
so it is aligned with the behaviour of the Delete index API. As a result, Open/Close index API don’t return an error by default when a provided wildcard expression doesn’t match any closed/open index.
open/close index API에 대한 allow_no_indices
option의 기본값은 false
에서 true
로 변경되었으므로 delete index API의 동작과 맞추어졌다. 결과적으로, 제공된 wildcard 표현식이 닫히거나 열리는 index와 일치하지 않는 경우 open/close index API는 기본적으로 error를 return하지 않는다.
Delete a documentedit
Delete a document from non-existing index has been modified to not create the index. However if an external versioning is used the index will be created and the document will be marked for deletion.
존재하지 않는 index에서 document를 삭제하면 index를 생성하지 않도록 변경되었다. 그러나 외부 버전 관리를 사용하면 index가 생성되고 document는 삭제로 표시된다.
Indices aliases api resolves indices expressions only against indicesedit
The index parameter in the update-aliases, put-alias, and delete-alias APIs no longer accepts alias names. Instead, it accepts only index names (or wildcards which will expand to matching indices).
update-alias, put-alias 및 delete-alias API의 index 매개 변수는 더 이상 alias를 허용하지 않는다. 대신 index 이름(또는 일치하는 index로 확장되는 wildcard)만 허용한다.
Delete index api resolves indices expressions only against indicesedit
The index parameter in the delete index API no longer accepts alias names. Instead, it accepts only index names (or wildcards which will expand to matching indices).
delete index API의 index 매개 변수는 더 이상 alias를 허용하지 않는다. 대신 index 이름(또는 일치하는 index로 확장되는 wildcard)만 허용한다.
Support for +
has been removed in index expressionsedit
Omitting the +
has the same effect as specifying it, hence support for +
has been removed in index expressions.
+
를 생략하는 것은 그것을 지정하는 것과 같은 효과를 가지므로, index 표현식에서 +
에 대한 지원이 제거되었다.
Translog retentionedit
Translog files are now kept for up to 12 hours (by default), with a maximum size of 512mb
(default), and are no longer deleted on flush
. This is to increase the chance of doing an operation based recovery when bringing up replicas up to speed.
translog 파일은 이제 기본적으로 최대 12 시간 동안 유지되며, 최대 크기는 512mb
(기본값)이며, flush
에서 더 이상 삭제되지 않는다. 이렇게 하면 replica를 최대 속도로 끌어 올 때, recovery를 기반으로 한 연산을 수행 할 가능성이 높아진다.
Limit to the difference between max_size and min_size in NGramTokenFilter and NGramTokenizeredit
To safeguard against creating too many index terms, the difference between max_ngram and min_ngram in NGramTokenFilter and NGramTokenizer has been limited to 1. This default limit can be changed with the index setting index.max_ngram_diff. Note that if the limit is exceeded a deprecation warning is logged.
너무 많은 index term를 생성하지 않기 위해 NGramTokenFilter
와 NGramTokenizer
에서 max_ngram
과 min_ngram
의 차이가 1
로 제한되었다.이 기본 제한은 index.max_ngram_diff
index setting을 사용하여 변경할 수 있다. 한계를 초과하면 deprecatopn warning이 기록된다.
Limit to the difference between max_size and min_size in ShingleTokenFilteredit
To safeguard against creating too many tokens, the difference between max_shingle_size and min_shingle_size in ShingleTokenFilter has been limited to 3. This default limit can be changed with the index setting index.max_shingle_diff. Note that if the limit is exceeded a deprecation warning will be logged.
너무 많은 token을 생성하지 않기 위해 ShingleTokenFilter
에서 max_shingle_size
와min_shingle_size
의 차이가 3
으로 제한되었다.이 기본 제한은 index.max_shingle_diff
index setting으로 변경할 수 있다. 한계를 초과하면 deprecatopn warning이 기록된다.
'6.x > 8. Breaking Changes' 카테고리의 다른 글
v6.0-10. Java API changes (0) | 2017.12.20 |
---|---|
v6.0-09. Ingest changes (0) | 2017.12.20 |
v6.0-07. Geo changes (0) | 2017.12.20 |
v6.0-06. Document API changes (0) | 2017.12.20 |
v6.0-05. Cluster changes (0) | 2017.12.20 |