Sitecore PowerShell Extensions
Slack
YouTube
Stack Exchange
Donate
Search…
Introduction
Disclaimer
Installation
Training
Community
Interfaces
Working with Items
Modules
Remoting
Security
Releases
Troubleshooting
Code Snippets
Appendix
Common
Indexing
Find-Item
Get-SearchIndex
Initialize-Item
Initialize-SearchIndex
Initialize-SearchIndexItem
Remove-SearchIndexItem
Resume-SearchIndex
Stop-SearchIndex
Suspend-SearchIndex
Packaging
Presentation
Provider
Security
Session
Powered By
GitBook
Initialize-SearchIndexItem
Syntax
1
Initialize-SearchIndexItem
-
Item <Item>
[
-
Name <String>
]
[
-
AsJob
]
2
Initialize-SearchIndexItem
-
Item <Item>
[
-
Name <String>
]
[
-
AsJob
]
3
Initialize-SearchIndexItem
-
SearchResultItem <SearchResultItem>
[
-
AsJob
]
Copied!
Detailed Description
Rebuilds the index for a given tree with the specified root item and index name. Supports wildcard filtering for the index name.
© 2010-2020 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Aliases
The following abbreviations are aliases for this cmdlet:
Rebuild-SearchIndexItem
Parameters
-Item <Item>
Aliases
Text
Required?
true
Position?
named
Default Value
​
Accept Pipeline Input?
true (ByValue)
Accept Wildcard Characters?
false
-SearchResultItem <SearchResultItem>
Aliases
Text
Required?
true
Position?
named
Default Value
​
Accept Pipeline Input?
true (ByValue)
Accept Wildcard Characters?
false
-AsJob <SwitchParameter>
Aliases
Text
Required?
false
Position?
named
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
-Name <String>
Aliases
Text
Required?
false
Position?
named
Default Value
​
Accept Pipeline Input?
false
Accept Wildcard Characters?
false
Examples
EXAMPLE 1
The following rebuilds the index for a given tree with the specified root node and index name.
1
$item
=
Get-Item
-
Path
"master:"
-
ID
"{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}"
2
$indexName
=
"sitecore_master_index"
3
Initialize-SearchIndexItem
-
Item
$item
-
Name
$indexName
Copied!
EXAMPLE 2
The following rebuilds the indexes matching the wildcard pattern for a given tree with the specified root node and index name.
1
$item
=
Get-Item
-
Path
"master:"
-
ID
"{110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}"
2
$indexName
=
"sitecore_*_index"
3
Initialize-SearchIndexItem
-
Item
$item
-
Name
$indexName
Copied!
Previous
Initialize-SearchIndex
Next
Remove-SearchIndexItem
Last modified
10d ago
Export as PDF
Copy link
Contents
Syntax
Detailed Description
Aliases
Parameters
-Item <Item>
-SearchResultItem <SearchResultItem>
-AsJob <SwitchParameter>
-Name <String>
Examples
EXAMPLE 1
EXAMPLE 2