Send a Solr command
import requests
url = "https://{FUSION HOST}/api/solrAdmin/{solrApiPath}/{path}"
response = requests.get(url)
print(response.text){
"responseHeader": {
"status": 0,
"QTime": 1
},
"solr-mbeans": [
"CORE",
{
"searcher": {
"class": "org.apache.solr.search.SolrIndexSearcher",
"version": "1.0",
"description": "index searcher",
"src": null
},
"core": {
"class": "collection1",
"version": "1.0",
"description": "SolrCore",
"src": null
},
"Searcher@435cf502[collection1] main": {
"class": "org.apache.solr.search.SolrIndexSearcher",
"version": "1.0",
"description": "index searcher",
"src": null
}
}
]
}Send a Solr command
Issue a Solr command to the search cluster.
Note that because one searchCluster may host several collections, it is not recommended to use this with a collection-level command (such as a query, or document update).
GET
/
solrAdmin
/
{solrApiPath}
/
{path}
Send a Solr command
import requests
url = "https://{FUSION HOST}/api/solrAdmin/{solrApiPath}/{path}"
response = requests.get(url)
print(response.text){
"responseHeader": {
"status": 0,
"QTime": 1
},
"solr-mbeans": [
"CORE",
{
"searcher": {
"class": "org.apache.solr.search.SolrIndexSearcher",
"version": "1.0",
"description": "index searcher",
"src": null
},
"core": {
"class": "collection1",
"version": "1.0",
"description": "SolrCore",
"src": null
},
"Searcher@435cf502[collection1] main": {
"class": "org.apache.solr.search.SolrIndexSearcher",
"version": "1.0",
"description": "index searcher",
"src": null
}
}
]
}Was this page helpful?
⌘I