Initialize-SearchIndex
Rebuilds the Sitecore index.

Syntax

1
Initialize-SearchIndex -Index <ISearchIndex> [-IncludeRemoteIndex] [-AsJob]
2
Initialize-SearchIndex [-IncludeRemoteIndex] [-Name <String>] [-AsJob]
3
Initialize-SearchIndex [-Name <String>] [-AsJob]
Copied!

Detailed Description

The Rebuild-SearchIndex command rebuilds Sitecore index. This command is an alias for Initialize-SearchIndex.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions

Aliases

The following abbreviations are aliases for this cmdlet:
  • Rebuild-SearchIndex

Parameters

-Index <ISearchIndex>

The index instance.
Aliases
Text
Required?
true
Position?
named
Default Value
Accept Pipeline Input?
true (ByValue, ByPropertyName)
Accept Wildcard Characters?
false

-IncludeRemoteIndex <SwitchParameter>

The remote indexing should be triggered.
Aliases
Text
Required?
false
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false

-AsJob <SwitchParameter>

The job created for rebuilding the index should be returned as output.
Aliases
Text
Required?
false
Position?
named
Default Value
Accept Pipeline Input?
false
Accept Wildcard Characters?
false

-Name <String>

The name of the index to resume.
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 Sitecore.Jobs.Job

Outputs

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

Notes

Help Author: Adam Najmanowicz, Michael West

Examples

EXAMPLE 1

1
The following rebuilds the index.
2
3
Initialize-SearchIndex -Name sitecore_master_index
Copied!

EXAMPLE 2

1
The following rebuilds the index.
2
3
Get-SearchIndex -Name sitecore_master_index | Initialize-SearchIndex
Copied!

Related Topics