API - Reset Solr Index Data

Index Management

Deletes every document of your Opensolr Index. The index itself, its configuration files and its settings stay.

Endpointhttps://opensolr.com/solr_manager/api/reset_index (reset_core is the same call)
MethodGET or POST
Authemail and api_key of your account, as GET or POST parameters: Authentication.
In the panelReset
There is no undo. Make a backup first if you may need the documents: create_backup.

01 · Parameters

core_nameRequired

The name of your index (index_name works too).

02 · Example

curl -s "https://opensolr.com/solr_manager/api/reset_index?email=YOUR_EMAIL&api_key=YOUR_API_KEY&core_name=my_index"

03 · Answer

{
    "status": true,
    "msg": "RESET OK"
}

When deleting the documents is not enough, the data folder is emptied and msg is RESET OK (hard). RESET FAILED means documents are still there: try again.

04 · Errors

ERROR_NOT_CORE_OWNERHTTP 200

The index 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.

05 · Related

Delete the whole index: delete_index.

Every error code and HTTP status of the API: API errors. Calls per minute and per hour: Rate limits.