Skip to main content
The Solr Configuration REST API is used to access and manage the Solr configuration files stored in ZooKeeper. To manage Solr synonym lists, use the Synonyms Editor API. To manage Solr lists of stopwords, see Stopwords Files.

Solr Configuration Definition Properties

Path Parameters Query Parameters The output will include a list of each file with the following information:
  • name. The name of the file or node.
  • version. The file or node version from ZooKeeper.
  • isDir. If the node has children, this value will be true.
  • value. 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.
If the header includes ‘Accept: text/plain’ or ‘Accept: application/octet-stream’, metadata about the file will not be returned and only the content as either plain text or raw bytes. 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.

ZooKeeper Collection Configuration Definition Properties

Path Parameters Query Parameters Input Content The REST API does not restrict the type of content that can be sent to ZooKeeper, but care should be taken to make sure the format of the file remains compatible with Solr’s requirements. As a best practice, all requests should include the Content-type in the request header.

Examples

Show _rest_managed.json for the ‘docs’ collection, with the base64 encoded content: INPUT
OUTPUT
Get the plain text version of ‘synonyms.txt’: INPUT
OUTPUT
Show the child nodes of ‘clustering’: INPUT
OUTPUT
Replace the contents of the existing synonyms.txt file with the contents of a file named “updated-synonyms.txt” and reload the collection: INPUT
OUTPUT None.

Change Solr configurations in Fusion 5.x using the API

Add a search component and a request handler: