title: Spring Elasticsearch reindex method
body: <p>I've written a reindex method that does the following:</p>
  <pre><code>public void reindex() {
      IndexOperations indexOperations = elasticsearchOperations.indexOps(Song.class);
      List&lt;Song&gt; songs = songRepository.findAll();
      songSearchRepository.deleteAll();
      indexOperations.delete();
      indexOperations.create();
      songSearchRepository.saveAll(songs);
  }
  </code></pre>
  <p>It does the job but I'm now sure whether it makes sence just to delete and then create an index. How can I improve this method?</p>