6.x/8. Breaking Changes

v6.0-01. Aggregations changes

drscg 2017. 12. 20. 15:58

Deprecated pattern element of include/exclude for terms aggregations has been removededit

The include and exclude options of terms aggregations used to accept a sub pattern object which has been removed. The pattern should now be directly put as a value of the include and excludefields. For instance, the below terms aggregation:

terms aggregations에서 includeexclude option의 하위 pattern object가 제거되었다. 이제 pattern은 include 및 exclude field의 값으로 직접 입력되어야 한다. 예를 들어, 아래의 terms aggregation은:

POST /twitter/_search?size=0
{
    "aggs" : {
        "top_users" : {
            "terms" : {
                "field" : "user",
                "include": {
                  "pattern": "foo.*"
                },
                "exclude": {
                  "pattern": ".*bar"
                }
            }
        }
    }
}

should be replaced with:

다음처럼 변경되어야 한다.

POST /twitter/_search?size=0
{
    "aggs" : {
        "top_users" : {
            "terms" : {
                "field" : "user",
                "include": "foo.*",
                "exclude": ".*bar"
            }
        }
    }
}

Numeric to and from parameters in date_range aggregation are interpreted according to format nowedit

Numeric to and from parameters in date_range aggregations used to always be interpreted as epoch_millis, making other numeric formats like epoch_seconds unusable for numeric input values. Now we interpret these parameters according to the format of the target field. If the format in the mappings is not compatible with the numeric input value, a compatible format (e.g. epoch_millisepoch_second) must be specified in the date_range aggregation, otherwise an error is thrown.

date_range aggregation의 to 와 from parameter의 수자는 는 항상 epoch_millis 로 해석되어,epoch_seconds 와 같은 다른 숫자 형식을 숫자 입력 값으로 사용할 수 없다. 이제 대상 field의 format`에 따라 이러한 parameter를 해석한다다. mapping의 `format 이 숫자 입력 값과 호환되지 않으면, 호환 가능한 format(예 :epoch_millis,epoch_second)을 date_range aggregation에 지정해야 한다. 그렇지 않으면 오류가 발생한다.

global_ordinals_hash and global_ordinals_low_cardinalityare deprecated in the terms aggregationedit

The execution hints global_ordinals_hash and global_ordinals_low_cardinality are deprecated and should be replaced by global_ordinals which now internally choose whether it should remap global ordinals to dense ordinals or directly use the segment ordinals.

실행 힌트 global_ordinals_hash 와 global_ordinals_low_cardinality 는 deprecate되었고global_ordinals 로 대체되어야 한다. global_ordinals 는 이제 전역 서수를 조밀한 ordinal로 다시 mapping해야 할지 또는 segment ordinal를 직접 사용할 지를 내부적으로 선택한다.


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

v6.0-04. Clients changes  (0) 2017.12.20
v6.0-03. Cat API changes  (0) 2017.12.20
v6.0-02. Analysis changes  (0) 2017.12.20
v6.0 Breaking changes  (0) 2017.12.20
v6.x Breaking changes  (0) 2017.12.20