š” Home š Chapter Home š Next
ā”Ā ElasticsearchBook is crafted by Jozef Sorocin (š¢Ā Book a consulting hour) 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
, 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
Ā set in the mappingignore_malformed
Ā parameter was defined in the index mapping