# Get-SearchIndex

Returns the available Sitecore indexes.

## Syntax

Get-SearchIndex \[-Name \<String>]

Get-SearchIndex \[-Name \<String>]

## Detailed Description

The Get-SearchIndex command returns the available Sitecore indexes. These are the same as those found in the Control Panel.

© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions

## Parameters

### -Name \<String>

Name of the index to return.

| Aliases                     |       |
| --------------------------- | ----- |
| Required?                   | false |
| Position?                   | named |
| Default Value               |       |
| Accept Pipeline Input?      | false |
| Accept Wildcard Characters? | false |

## Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

* None or System.String

## Outputs

The output type is the type of the objects that the cmdlet emits.

* Sitecore.ContentSearch.ISearchIndex

## Notes

Help Author: Adam Najmanowicz, Michael West

## Examples

### EXAMPLE 1

```powershell
The following lists all available indexes.

PS master:\>Get-SearchIndex

Name                             IndexingState   IsRebuilding    IsSharded
----                             -------------   ------------    ---------
sitecore_analytics_index         Started         False           False
sitecore_core_index              Started         False           False
sitecore_master_index            Started         True            False
sitecore_web_index               Started         False           False
sitecore_marketing_asset_inde... Started         False           False
sitecore_marketing_asset_inde... Started         False           False
sitecore_testing_index           Started         False           False
sitecore_suggested_test_index    Started         False           False
sitecore_fxm_master_index        Started         False           False
sitecore_fxm_web_index           Started         False           False
sitecore_list_index              Started         False           False
social_messages_master           Started         False           False
social_messages_web              Started         False           False
```

### EXAMPLE 2

```powershell
The following lists only the specified index.

PS master:\>Get-SearchIndex -Name sitecore_master_index

Name                             IndexingState   IsRebuilding    IsSharded
----                             -------------   ------------    ---------
sitecore_master_index            Started         True            False
```

## Related Topics

* [Initialize-SearchIndex](/appendix/indexing/initialize-searchindex.md)
* [Stop-SearchIndex](/appendix/indexing/stop-searchindex.md)
* [Resume-SearchIndex](/appendix/indexing/resume-searchindex.md)
* [Suspend-SearchIndex](/appendix/indexing/suspend-searchindex.md)
* <https://github.com/SitecorePowerShell/Console/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sitecorepowershell.com/appendix/indexing/get-searchindex.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
