I am using this Powershell script for Coveo indexing, but I do not see the output after waiting for a long time. I can see that indexing is running in "Coveo indexing manager". But its not completing or giving any messages. Could anyone suggest about this issue?
using namespace Sitecore.ContentSearch
$indexes = [ContentSearchManager]::Indexes
foreach($index in $indexes){
if($index.Name -match "Coveo")
{
Write-Host "Re-indexing started " $index.Name
$index.Rebuild([IndexingOptions]::ForcedIndexing);
Write-Host "Re-indexing Finished" $index.Name
}
}