Fielddata errors on `pubsub-rails-inf-gprd-003051` index making rails production logs partially not searchable
came up during: production#2228 (closed)
can be reproduced with this search: https://log.gprd.gitlab.net/goto/ea9f675246d21481173577226e26c765 (this search is just a simple Kibana search on the rails index pattern on a time range: 2020-06-04 03:00 UTC - 04:00 UTC)
detailed err message:
illegal_argument_exception at shard 0index pubsub-rails-inf-gprd-003051node VM2E5_y5S_-QhlGTk4ST5Q
Fielddata is disabled on text fields by default. Set fielddata=true on [json.query_variables.dueDate] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.
Edited by Michal Wasilewski