Skip to main content
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.json())
{
  "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

collection
string
required

The collection ID.

path
string
required

The Solr command path.

Body

*/* · 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.