【问题标题】:When no write, why Elasticsearch performs indexing every 'n' seconds?没有写入时,为什么 Elasticsearch 每隔“n”秒执行一次索引?
【发布时间】:2021-11-05 00:12:19
【问题描述】:

我有关于弹性搜索的基本问题。

根据文档:默认情况下,Elasticsearch 会每秒定期刷新索引,但仅针对在过去 30 秒内收到一个或多个搜索请求的索引。 参考:https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-refresh.html#refresh-api-desc

同样根据文档:存储文档后,它会在近乎实时的时间内被索引并完全可搜索——在 1 秒内。 参考:https://www.elastic.co/guide/en/elasticsearch/reference/7.14/documents-indices.html

所以当写入发生时,索引就会发生。当没有发生写入并且文档已经被索引时,为什么弹性搜索每 1 秒索引一次现有文档?

【问题讨论】:

    标签: elasticsearch indexing lucene opensearch


    【解决方案1】:

    它没有索引现有文档,这已经完成了

    它正在检查是否需要写入任何需要写入磁盘以使其可搜索的内存索引请求

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-17
      • 1970-01-01
      • 2020-11-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多