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
Text
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

1
The following lists all available indexes.
2
3
PS master:\>Get-SearchIndex
4
5
Name IndexingState IsRebuilding IsSharded
6
---- ------------- ------------ ---------
7
sitecore_analytics_index Started False False
8
sitecore_core_index Started False False
9
sitecore_master_index Started True False
10
sitecore_web_index Started False False
11
sitecore_marketing_asset_inde... Started False False
12
sitecore_marketing_asset_inde... Started False False
13
sitecore_testing_index Started False False
14
sitecore_suggested_test_index Started False False
15
sitecore_fxm_master_index Started False False
16
sitecore_fxm_web_index Started False False
17
sitecore_list_index Started False False
18
social_messages_master Started False False
19
social_messages_web Started False False
Copied!

EXAMPLE 2

1
The following lists only the specified index.
2
3
PS master:\>Get-SearchIndex -Name sitecore_master_index
4
5
Name IndexingState IsRebuilding IsSharded
6
---- ------------- ------------ ---------
7
sitecore_master_index Started True False
Copied!

Related Topics