问题描述
使 SOLR 安装提交所有待处理文档的最简单方法是什么?
What's the most simple way to cause a SOLR installation to commit all pending docs?
(管理界面中没有明显的方法.页面上提到了一个名为commit"的脚本http://wiki.apache.org/solr/SolrOperationsTools——但没有暗示它在哪里.提交"显然是一个可以添加到任何更新 POST 的选项,但我找不到任何参考仅用于提交的单个 URL.)
(There's no obvious way in the admin interface. There's a script called 'commit' mentioned on the page http://wiki.apache.org/solr/SolrOperationsTools -- but no hint where that lives. 'Commit' is clearly an option that can be added to any update POST, but I can't find any reference to a single URL that serves to only commit.)
推荐答案
THIS HOLDS FOR SOLR VERSIONS
试试[solr url]/update?commit=true
例如,对于像 SOLR 示例默认的 URL,来自同一台机器,http://localhost:8983/solr/update?commit=true
应该这样做.
For example, with an URL like the SOLR example defaults, from the same machine, http://localhost:8983/solr/update?commit=true
should do it.
对于 SOLR 版本 >= 5.0
http://localhost:8983/solr/[collection_name]/update?commit=true
这篇关于触发所有待处理文档的 SOLR 提交的最简单方法(URL?)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!