我有关于弹性搜索的基本问题。
根据文档:默认情况下,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 秒索引一次现有文档?