Skip to main content
GET
/
collections
/
{collection}
/
solr-config
List all Solr config files
import requests

url = "https://{FUSION HOST}/api/collections/{collection}/solr-config"

response = requests.get(url)

print(response.json())
[
  {
    "name": "<string>",
    "parent": "<string>",
    "href": "<string>",
    "version": 123,
    "isDir": true,
    "children": [
      {}
    ],
    "value": [
      "aSDinaTvuI8gbWludGxpZnk="
    ],
    "type": "STOPWORDS"
  }
]

Path Parameters

collection
string
required

The collection that contains the configuration files.

Query Parameters

recursive
boolean
default:false

'True' to return children of nested ZooKeeper nodes. This can be used in conjunction with the path to show only children of a specific node. If recursive=true and expand=true are both used in the same request, the request may be a little slow depending on how much data is requested.

expand
boolean
default:false

If true, the binary content of a file is returned base64-encoded. Otherwise, only the metadata about each node is returned. To see the content of the file in plain text, you can add 'Accept: text/plain' to the request header. Alternately, you can get the raw bytes by adding 'Accept: application/octet-stream' to the header.

Response

200 - application/json

successful operation

name
string

The name of the file or node.

parent
string
href
string<uri>
version
integer

The file or node version from ZooKeeper.

isDir
boolean

If the node has children, this value will be true.

children
object[]
value
string<byte>[]

Only returned if expand=true is added as a query parameter. This will be returned as the base64 encoding of the contents of the file.

type
enum<string>
Available options:
STOPWORDS,
SYNONYMS