š” Home š Chapter Home š Next
ā”Ā ElasticsearchBook.com is crafted by Jozef Sorocin and powered by:
The topic of empty-ish fields comes up often because:
null
, []
, {}
, ""
)In Elasticsearch, these values would indicate that a given field does exist:
""
Ā orĀ "-"
**null
Ā and another value**, such asĀ [null, "foo"]
[null-value](<https://www.elastic.co/guide/en/elasticsearch/reference/current/null-value.html>)
, defined in field mapping (discussed later on)When a doc is inserted into ES, its fields are usually indexed. The indexed value of one of those fields may not exist due to a variety of reasons:
null
Ā orĀ []
or [null, null, ...?]
or {}
["index" : false](<https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-index.html>)
Ā set in the mapping[ignore_malformed](<https://www.elastic.co/guide/en/elasticsearch/reference/current/ignore-malformed.html>)
Ā parameter was defined in the index mapping