All Questions
Elasticsearch medium

Searching or aggregating on a `text` field often requires enabling `fielddata`. Why is this highly discouraged in production environments?

  1. A It requires the data to be unencrypted in the REST API response.
  2. B Heap Overflow Risk: Fielddata loads the entire inverted index for that field into the JVM Heap RAM. For high-cardinality data, this causes Garbage Collection (GC) thrashing and eventually crashes the node with an OutOfMemory (OOM) error.
  3. C It forces the index to be read-only while the fielddata is being built.
  4. D It prohibits the use of Replica shards for that index.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions