API - Reload index

Index Management
API Endpoint

Reload Solr Index

Reload a Solr index to apply configuration changes. After uploading new config files (like schema.xml or solrconfig.xml), you must reload the index for the changes to take effect.

Endpoint

GET https://opensolr.com/solr_manager/api/reload_core

Parameters

ParameterStatusDescription
emailrequiredYour Opensolr registration email address
api_keyrequiredYour Opensolr API key
core_namerequiredThe name of the index you wish to reload
Tip: Always reload your index after uploading new configuration files via the Upload Config or Upload Zip endpoints.

Code Examples

cURL

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

PHP

$params = http_build_query([
    'email'     => 'YOUR_EMAIL',
    'api_key'   => 'YOUR_API_KEY',
    'core_name' => 'YOUR_INDEX',
]);
$response = json_decode(file_get_contents(
    'https://opensolr.com/solr_manager/api/reload_core?' . $params
), true);
print_r($response);

Python

import requests

response = requests.get(
    "https://opensolr.com/solr_manager/api/reload_core",
    params={
        "email": "YOUR_EMAIL",
        "api_key": "YOUR_API_KEY",
        "core_name": "YOUR_INDEX",
    }
)
data = response.json()
print(data)

Related Documentation

Create Index

Create a new Solr index via the API.

List Indexes

Get a list of all your Opensolr indexes.

Index Info & Stats

Get detailed information and statistics for an index.

Platform Guide

Complete guide to the Opensolr platform and control panel.

Need help managing your Solr indexes? We are here to help.

Contact Support