We are in a situation where extremely large documents were indexed (to text fields) and our ElasticSearch instance has been going down/crazy recently with out of disk and out of memory. We've also run into HTTP response errors just viewing the documents.
As I understand it there is no way to limit a text field on the mapping? Just keyword fields.
How can we limit text fields to say 10'000 bytes?
How can we query for large documents above a certain size?