Elasticsearch 的重建机制

其实Elasticsearch并没有重建的接口。

比较好的重建方法是,先后台建立新的索引,然后将旧的索引改为新的索引,最后删掉旧索引。

这样看来,在系统中使用elasticsearch接口的时候,直接使用alias会比较方便。在重建索引之后,只需要改变alias即可。

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.