Send a GET request to Solr
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.
GET
/
solr
/
{collection}
/
{path}
Send a GET request to Solr
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"
]
}
]
}
}Path Parameters
The collection ID.
The Solr command path.
Pattern:
.*Body
*/*
The body is of type object.
Response
200 - application/json
Successful Solr response. The structure depends on the request path and handler, such as /select or /update.
Arbitrary Solr response content depending on the handler invoked.
Was this page helpful?
⌘I