in my project I have (index and type): test_index/rare_events structure.
those rare_events are submitted to ES very rarely and generally I would
like to store for instance only last 10 of them. how to limit in ES the amount
of documents during mapping creation for rare_events type? what is the
correct approach? thanks in advance for all hints