soft reload SOLR server

Created by Tung NGUYEN on 2016-02-04 15:10:03
Last modified on 2016-02-04 15:58:38

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: 
  1. Run: curl http://localhost:8983/solr/solrdemo/update -d '[{"id" : "book2", "title_t" : "Statistical Methods for Spatio-Temporal Systems", "autho r_s" : "Held Isham"}]'
  2. Look solr server and the number of docs
  3. Changes?
  4. Run: curl http://localhost:8983/solr/solrdemo/update?commit=true
  5. 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

Category: Todos
Tags: 6

© 2013 - 2026. Tung NGUYEN. Using CI version: 3.0.2 | Page rendered in 0.0026 seconds.