Elasticsearch
Artykuł
Obserwowalność

Elasticsearch tutorial – mapowanie za pomocą dynamicznych szablonów

W innym wpisie zajmowaliśmy się tematem mapowania, ale pewnie już wiesz, że nawet gdy nie utworzymy wcześniej mappingu, możemy dodawać do Elasticsearcha nowe dokumenty, a sam silnik poradzi sobie na swój sposób z mapowaniem, choć niekoniecznie będzie to zadowalające.

Domyślne reguły mapowania

Domyślnie, kiedy Elasticsearch znajdzie nowe pole w dokumencie, doda to pole do mapowania. Jakimi regułami kieruje się, ilustruje to poniższa tabela:


JSON datatype: Elasticsearch datatype

null: No field is added

true or false: boolean field

floating point number: float field

integer: long field

object: object field

array: Depends on the first non-null value in the array.

string: Either a date field (if the value passes date detection), a double or long field (if the value passes numeric detection) or a text field, with a keyword sub-field.

Źródło: https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic-field-mapping.html

Źródła


Artykuł dostarczył zespół Omnilogy

Doświadczeni konsultanci, analitycy i programiści, którzy ciągle podnoszą swoje kompetencje i chętnie dzielą się swoją wiedzą!

Observability and security for business resilience
//
Observability and security for business resilience
//
Observability and security for business resilience
//
Observability and security for business resilience
//
Observability and security for business resilience
//
Observability and security for business resilience
//
Observability and security for business resilience
//
Observability and security for business resilience
//
Observability and security for business resilience
//
Observability and security for business resilience
//
Observability and security for business resilience
//
Observability and security for business resilience
//

Bądź na bieżąco!

Zapisz się do naszego newslettera i otrzymuj najnowsze artykuły, newsy i informacje o branżowych wydarzeniach prosto do swojej skrzynki odbiorczej!