Gravatar for pavan.omtri@towerswatson.com

Question by psomtri, Jun 3, 2015 5:37 PM

sitecore index rebuild scheduling

How to rebuild coveo sitecore index programmatically from a scheduled job?

1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Jun 3, 2015 5:57 PM

Programmatically rebuilding the Coveo for Sitecore indexes is already documented (see Refreshing or Rebuilding a Search Index Programmatically).

For the "scheduled job" part, I know that Sitecore has some scheduling features. You should check on Google for "Sitecore scheduling" and "Sitecore scheduled tasks".

Gravatar for pavan.omtri@towerswatson.com

Comment by psomtri, Jun 5, 2015 10:02 AM

I tried that to rebuild my index that I defined in Coveo.SearchProvider.config but it did not work. It failed to on GetIndex and error says index not found. Am I missing any other configuration ?

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Jun 5, 2015 11:21 AM

Did you have any typos in the index name? The name is probably case sensitive.

Was your index of the right type (Coveo.SearchProvider.ProviderIndex, Coveo.SearchProvider) in the Coveo.SearchProvider.config file?

Gravatar for pavan.omtri@towerswatson.com

Comment by psomtri, Jun 6, 2015 2:30 AM

That was it I cannot believe index name can be case sensitive. You are awesome man, thanks for the tip. :)

Ask a question