Skip to content

Instantly share code, notes, and snippets.

@coryschires
Created March 31, 2015 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coryschires/46e9e75436730af99349 to your computer and use it in GitHub Desktop.
Save coryschires/46e9e75436730af99349 to your computer and use it in GitHub Desktop.
Local SOLR replication
curl --verbose -X POST http://localhost:8982/solr/admin/replication -d command=fetchindex -d masterUrl=https://index.websolr.com/solr/{PROD_WEBSOLR_ID}/replication
* Adding handle: conn: 0x7fafa8804000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fafa8804000) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 8982 (#0)
* Trying ::1...
* Connected to localhost (::1) port 8982 (#0)
> POST /solr/admin/replication HTTP/1.1
> User-Agent: curl/7.30.0
> Host: localhost:8982
> Accept: */*
> Content-Length: 83
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 83 out of 83 bytes
< HTTP/1.1 302 Found
< Content-Length: 0
< Location: http://localhost:8982/solr/admin/replication/
* Server Jetty(6.1-SNAPSHOT) is not blacklisted
< Server: Jetty(6.1-SNAPSHOT)
<
* Connection #0 to host localhost left intact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment