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

后端 未结 4 600
栀梦
栀梦 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:49

    Since Solr 5 it is required to add collection name into the url, so now the right answer is:

    http://localhost:8983/solr/collection_name/update?commit=true

    In the previous versions it was possible to have a default collection (it was usually collection1, from the examples) and the shortened version was valid:

    http://localhost:8983/solr/update?commit=true

    Still, it was possible to name the collection like in the first case.

提交回复
热议问题