Tags

, , ,

Hi Friends,

In many projects, I have seen that we are required to Index one item or Item tree.

How to index a part of the content tree on demand?

Options 1: Sitecore provides an OOB option to index the tree. It is under the Developer Tab in the Ribbon.

  1. Select the item and then in the Developer Tab
  2. Click “Re-Index Tree”
Re-Index Tree option in Developer tab

If you are looking for a script, any other option than the inbuilt, then PowerShell also provides one.

Option 2: PowerShell maintenance. In Sitecore PowerShell, there are 2 scripts in the Context menu, “Index this” & “Index this and descendants”.

These scripts are available as shown below in the image.

  • Select the item
  • Right-click, and select Scripts – This is available in PowerShell only.
  • You will find 2 options here
Index this option in PowerShell Scripts.

If you cannot see the options, check the below Path. The Item is available with PowerShell Installation but it is not enabled. You just need to enable it and then you will get the options.

Path: /sitecore/system/Modules/PowerShell/Script Library/SPE/Maintenance/Index On Demand

Enable the Index on Demand option.

Hope this will help you in solving the issues with the Indexing.