Makes an index you own a copy of another one: the follower takes the data and the configuration files of the leader, and keeps up with it.
https://opensolr.com/solr_manager/api/replicate_indexemail and api_key of your account, as GET or POST parameters: Authentication.01 · Parameters
core_nameRequiredThe leader: the index to copy from.
target_indexRequiredThe follower: an index of yours that already exists, on the same Solr version as the leader.
02 · Example
curl -s "https://opensolr.com/solr_manager/api/replicate_index?email=YOUR_EMAIL&api_key=YOUR_API_KEY&core_name=my_index&target_index=my_index_copy"
03 · Answer
{ "status": "ok", "msg": { "master_status": "OK", "replica_status": "OK" } }
The follower checks the leader for changes every 20 seconds. Its own documents are replaced by those of the leader.
04 · Errors
ERROR_NOT_MASTER_CORE_OWNERHTTP 200The leader is not yours.
ERROR_NOT_REPLICA_CORE_OWNERHTTP 200The follower is not yours.
ERROR_AUTHENTICATION_FAILEDHTTP 403The email and API key do not match.
ERROR_RATE_LIMIT_PER_MINUTEHTTP 429Too many calls. Wait for the Retry-After seconds: Rate limits.
A Solr version mismatch answers "status": "failure" with both versions in msg.
05 · Related
Create the follower first: create_index.
Every error code and HTTP status of the API: API errors. Calls per minute and per hour: Rate limits.