Python
import requests url = "https://{FUSION HOST}/api/solr/{collection}/{path}" payload = {} headers = {"Content-Type": "*/*"} response = requests.get(url, json=payload, headers=headers) print(response.text)
{ "responseHeader": { "status": 0, "QTime": 2, "params": { "fl": "title", "q": "solr", "wt": "json", "rows": "2" } }, "response": { "numFound": 52, "start": 0, "docs": [ { "title": [ "Solr and SolrAdmin APIs - Fusion Documentation - Lucidworks" ] }, { "title": [ "Search Clusters - Fusion Documentation - Lucidworks" ] } ] } }
Send a proxy request to Solr.
The collection ID.
The Solr command path.
The body is of type object.
object
Successful Solr response. The structure depends on the request path and handler, such as /select or /update.
/select
/update
Arbitrary Solr response content depending on the handler invoked.
Was this page helpful?