API - Replicate Solr Index

Index Management

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.

Endpointhttps://opensolr.com/solr_manager/api/replicate_index
MethodGET
Authemail and api_key of your account, as GET or POST parameters: Authentication.
In the panelReplicate an index

01 · Parameters

core_nameRequired

The leader: the index to copy from.

target_indexRequired

The 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 200

The leader is not yours.

ERROR_NOT_REPLICA_CORE_OWNERHTTP 200

The follower is not yours.

ERROR_AUTHENTICATION_FAILEDHTTP 403

The email and API key do not match.

ERROR_RATE_LIMIT_PER_MINUTEHTTP 429

Too 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.