Apache Solr Schema API

Read and modify the schema of a collection

Operations 8

GET /solr/{collection}/schema Retrieve the entire schema of a collection #
POST /solr/{collection}/schema Execute schema modification commands #
GET /solr/{collection}/schema/fields List all fields #
GET /solr/{collection}/schema/fields/{fieldname} Retrieve a field definition #
GET /solr/{collection}/schema/dynamicfields List dynamic field rules #
GET /solr/{collection}/schema/fieldtypes List field types #
GET /solr/{collection}/schema/copyfields List copy field rules #
GET /solr/{collection}/schema/uniquekey Get the unique key field name #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/apache-solr-schema-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

apache-solr-schema-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Apache Solr HTTP Cluster Schema API
  version: 9.x
  description: 'A best-effort OpenAPI 3.1 description of selected endpoints from the Apache

    Solr HTTP API, including the Collections (Cluster/Node Management), Schema,

    and v2 cluster APIs. Solr''s full APIs are exposed as v1 (action-style query

    parameters under `/solr/admin/*`) and v2 (resource-style paths under

    `/api/*`). Authentication is optional but BasicAuth is supported when the

    Solr `BasicAuthPlugin` is enabled.

    '
  contact:
    name: Apache Solr
    url: https://solr.apache.org/
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: http://{host}:{port}
  description: Default Solr server
  variables:
    host:
      default: localhost
    port:
      default: '8983'
tags:
- name: Schema
  description: Read and modify the schema of a collection
paths:
  /solr/{collection}/schema:
    parameters:
    - name: collection
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Schema
      summary: Retrieve the entire schema of a collection
      operationId: getSchema
      parameters:
      - name: wt
        in: query
        required: false
        schema:
          type: string
          enum:
          - json
          - xml
          - schema.xml
      responses:
        '200':
          description: Schema document
          content:
            application/json:
              schema:
                type: object
    post:
      tags:
      - Schema
      summary: Execute schema modification commands
      operationId: modifySchema
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Schema modification commands (add-field, delete-field, replace-field, add-field-type, etc.)
      responses:
        '200':
          description: Schema modified
  /solr/{collection}/schema/fields:
    parameters:
    - name: collection
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Schema
      summary: List all fields
      operationId: listFields
      parameters:
      - name: includeDynamic
        in: query
        required: false
        schema:
          type: boolean
      - name: showDefaults
        in: query
        required: false
        schema:
          type: boolean
      - name: fl
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: List of fields
          content:
            application/json:
              schema:
                type: object
  /solr/{collection}/schema/fields/{fieldname}:
    parameters:
    - name: collection
      in: path
      required: true
      schema:
        type: string
    - name: fieldname
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Schema
      summary: Retrieve a field definition
      operationId: getField
      responses:
        '200':
          description: Field definition
          content:
            application/json:
              schema:
                type: object
  /solr/{collection}/schema/dynamicfields:
    parameters:
    - name: collection
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Schema
      summary: List dynamic field rules
      operationId: listDynamicFields
      responses:
        '200':
          description: Dynamic field rules
          content:
            application/json:
              schema:
                type: object
  /solr/{collection}/schema/fieldtypes:
    parameters:
    - name: collection
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Schema
      summary: List field types
      operationId: listFieldTypes
      responses:
        '200':
          description: Field types
          content:
            application/json:
              schema:
                type: object
  /solr/{collection}/schema/copyfields:
    parameters:
    - name: collection
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Schema
      summary: List copy field rules
      operationId: listCopyFields
      responses:
        '200':
          description: Copy field rules
          content:
            application/json:
              schema:
                type: object
  /solr/{collection}/schema/uniquekey:
    parameters:
    - name: collection
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Schema
      summary: Get the unique key field name
      operationId: getUniqueKey
      responses:
        '200':
          description: Unique key field
          content:
            application/json:
              schema:
                type: object
components:
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Enabled when Solr's BasicAuthPlugin is configured