Basically we run url: curl http://localhost:8983/solr/solrdemo/update?commit=true
In Solr 5, we need to indicate the collection name (core name).
Test:
- Run: curl http://localhost:8983/solr/solrdemo/update -d '[{"id" : "book2", "title_t" : "Statistical Methods for Spatio-Temporal Systems", "autho r_s" : "Held Isham"}]'
- Look solr server and the number of docs
- Changes?
- Run: curl http://localhost:8983/solr/solrdemo/update?commit=true
- Look solr server and the number of docs
Another reference links:
http://stackoverflow.com/questions/7815628/most-simple-way-url-to-trigger-solr-commit-of-all-pending-docs
https://docs.datastax.com/en/datastax_enterprise/4.0/datastax_enterprise/srch/srchReldCore.html