Create a Solr configuration file
import requests
url = "https://{FUSION HOST}/api/collections/{collection}/solr-config/{path}"
payload = ["aSDinaTvuI8gbWludGxpZnk="]
headers = {"Content-Type": "*/*"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)This response has no body data.Create a Solr configuration file
Upload a new Solr configuration file in the request body. As a best practice, all requests should include the Content-type in the request header.
POST
/
collections
/
{collection}
/
solr-config
/
{path}
Create a Solr configuration file
import requests
url = "https://{FUSION HOST}/api/collections/{collection}/solr-config/{path}"
payload = ["aSDinaTvuI8gbWludGxpZnk="]
headers = {"Content-Type": "*/*"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)This response has no body data.Headers
An optional tag to match against the specified blob.
Path Parameters
The collection that contains the configuration files.
The path to a specific file or nested child nodes. If the file is not nested, the filename can be entered without any path information.
Pattern:
.*Query Parameters
'True' to reload the collection and make the changes available to Solr immediately.
Validate the configuration file before saving it.
Body
*/*
The content of the file to be saved.
Pattern:
^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$Response
200 - undefined
Was this page helpful?
⌘I