Gravatar for

Question by ncipollina, Jan 26, 2016 11:28 AM

An index should be configured for database "web".

I have recently gone through the steps outlined in Installing Coveo for Sitecore in a CM or CD Configuration and when I attempt to test the connectivity at the very end, I get the following error message:

[InvalidOperationException: An index should be configured for database "web".] Coveo.UI.Helpers.SitecoreHelper.GetSearchIndex() +332 Coveo.SearchProvider.Rest.SitecoreRestHttpHandler.GetSecurityProviderName() +70 Coveo.SearchProvider.Rest.SitecoreRestHttpHandler.OnInitializeSettings() +365 Coveo.Search.Api.Proxy.ProxyHttpHandler.OnInitialize() +58 Coveo.Search.Api.Proxy.ProxyHttpHandler.EnsureInitialized() +140 Coveo.Search.Api.Proxy.ProxyHttpHandler.ProcessRequest(HttpContext context) +78 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165

I believe I have followed all the steps correctly on my CD server and I'd like to know what is causing this issue. My pub index configuration looks like this:

          <index id="Coveo_pubweb_index" type="Coveo.SearchProvider.ProviderIndex, Coveo.SearchProvider">
        <param desc="p_Name">$(id)</param>
        <configuration ref="coveo/defaultIndexConfiguration" />
        <locations hint="list:AddCrawler">
          <crawler type="Coveo.SearchProvider.CoveoItemCrawler, Coveo.SearchProviderBase">
        <propertyStore type="Sitecore.ContentSearch.Maintenance.IndexDatabasePropertyStore, Sitecore.ContentSearch">
        <SourceName>Coveo_pubweb_index - CM</SourceName>

Any ideas of what I'm doing wrong?

Thanks in advance.

1 Reply
Gravatar for

Answer by ncipollina, Jan 26, 2016 2:55 PM

It actually turns out that it was a Sitecore issue. My index was configured incorrectly for a CD server. This was causing Sitecore not to be able to find any indexes.

Ask a question