---
title: "Solr managed schemas"
slug: "solr-managed-schemas"
abstract: "Solr has a RESTful API that you use to manage schemas programmatically."
---
# Solr managed schemas

Solr has a RESTful API that you use to manage schemas programmatically. The cores and collections reload automatically after you update the schema.

Solr sample configuration sets use managed schemas instead of the legacy manual schema (`schema.xml` file).

Sitecore supports managed schemas, and has a tool that you use to populate the schema using the Schema API directly to Solr.

## To populate the schema from the Control Panel

To populate the schema from the **Control Panel**:

1. Start Solr.
2. In SitecoreAI, click **Settings > Desktop >** **Sitecore Start** button > **Control Panel**.
3. In the **Indexing** tab, click **Populate Solr Managed Schema**:

    ![Solr_managed_schemas-Picture_1-rId11-50855303.png](https://doc.sitecore.com/api/markdown-image/sai/en/developers/sitecoreai/images/Solr_managed_schemas-Picture_1-rId11-50855303.png)

4. In the **Schema Populate** window, select the indexes you want to populate:

    ![Solr_managed_schemas-Picture_2-rId12-1299452201.png](https://doc.sitecore.com/api/markdown-image/sai/en/developers/sitecoreai/images/Solr_managed_schemas-Picture_2-rId12-1299452201.png)

5. Click **Populate**.

## Populate schema from admin page

You can populate schemas from the admin page. This is especially useful if you populate schemas from PowerShell scripts.

To populate a schema from the admin page:

1. Call `http://<YOUR_INSTANCE>/sitecore/admin/PopulateManagedSchema.aspx?indexes=sitecore_master_index|sitecore_core_index|sitecore_web_index`. You use the `indexes` query parameter to pass the names of the indexes that you want to populate as a pipe (‘|’) separated list.
2. Inspect the HTTP status code to verify the result (200 means success).

## Populate schema using the Sitecore CLI

You can use the [indexing plugin](https://doc.sitecore.com/sai/en/developers/sitecoreai/sitecore-command-line-interface/plugins/indexing-plugin.html "Indexing plugin") that is available for the [Sitecore CLI](https://doc.sitecore.com/sai/en/developers/sitecoreai/sitecore-command-line-interface.html "Sitecore Command Line Interface") to populate schemas.

To populate schemas using the Sitecore CLI:

- Run the `sitecore index schema-populate` command in a terminal.

> [!note]
> For more information, see [The CLI index command](https://doc.sitecore.com/sai/en/developers/sitecoreai/sitecore-command-line-interface/sitecore-cli-command-reference/the-cli-index-command.html "The CLI index command"). This command is available from CLI 4.0 or later.