Fields as Doc_Values to drop Memory Usage Fields as Doc_Values to drop Memory Usage elasticsearch elasticsearch

Fields as Doc_Values to drop Memory Usage


Doc_Values are awesome!

  • For new indexes, fielddata size for those fields is at 0:

    "total": {   "fielddata": {      "memory_size_in_bytes": 5394813851,      "evictions": 112,      "fields": {         "field1": {            "memory_size_in_bytes": 0         }      }   }}
  • No more Data too largeexceptions when executing queries on those fields, not to mention that those queries execute much faster now, I guess because CircuitBreaker doesn't trip that often.

  • For performance... a very slight decrease on indexing, nothing worrying.

  • Index size, in our case, is about 20% larger now.