danielberkompas/elasticsearch-elixir

Make clean_starting_with -> num_to_keep configurable

silviurosu opened this issue · 1 comments

It is hardcoded to 2. This means that whenever I recreate the index I always have two copies of the index and automatically all the documents twice. This can lead to problems if we have a large dataset. Also many shared ES hosting solutions have limited number of indexes available.
Can you make optional if we want to keep the old version also?

Maybe we can add this number to config so we can set it per env?