Most simple way (URL?) to trigger SOLR commit of all pending docs?

后端 未结 4 488
栀梦
栀梦 2020-12-28 12:15

What\'s the most simple way to cause a SOLR installation to commit all pending docs?

(There\'s no obvious way in the admin interface. There\'s a script called \'comm

4条回答
  •  时光说笑
    2020-12-28 12:30

    THIS HOLDS FOR SOLR VERSIONS < 5.0

    Try [solr url]/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.

    FOR SOLR VERSIONS >= 5.0
    http://localhost:8983/solr/[collection_name]/update?commit=true

提交回复
热议问题