title: ElasticSearch - Daily index mapping
body: <p>Let's say i have an <code>Index</code> and I am want to create a daily index with an aliases.</p>
  
  <p>Then I have some application that works against the elastic search(Mostly adding new documents to the index) and I am using <code>Kibana</code> to view and query against it.</p>
  
  <p>So option number one for me is to have some separate <code>Job</code> which will run daily and create the index with its mapping and daily aliases. My problem here is that now my application is dependent on some outside job. </p>
  
  <p>Option number two is before every insert to the <code>ElasticSearch</code> to check whether the Index exists(and if the mappings are current) and if not - to create it. Which seems to me worst then option 1 because of the overhead.</p>
  
  <p>Any suggestions?</p>