API Endpoint
Create New Solr Index
Create a new Solr index on any available Opensolr server region. Specify the index name and the target region where it should be created.
Endpoint
GET https://opensolr.com/solr_manager/api/create_index
Parameters
| Parameter | Status | Description |
|---|---|---|
email | required | Your Opensolr registration email address |
api_key | required | Your Opensolr API key |
index_name | required | The name for your new index |
region | required | The server region identifier (e.g. DE-SOLR-9). Use the Get Available Regions API to see available options. |
Code Examples
cURL
curl -s "https://opensolr.com/solr_manager/api/create_index?email=YOUR_EMAIL&api_key=YOUR_API_KEY&index_name=my_new_index®ion=DE-SOLR-9"
PHP
$params = http_build_query([ 'email' => 'YOUR_EMAIL', 'api_key' => 'YOUR_API_KEY', 'index_name' => 'my_new_index', 'region' => 'DE-SOLR-9', ]); $response = json_decode(file_get_contents( 'https://opensolr.com/solr_manager/api/create_index?' . $params ), true); print_r($response);
Python
import requests response = requests.get( "https://opensolr.com/solr_manager/api/create_index", params={ "email": "YOUR_EMAIL", "api_key": "YOUR_API_KEY", "index_name": "my_new_index", "region": "DE-SOLR-9", } ) 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