Gravatar for r.c.correa@outlook.com

Question by rcorrea, Jul 24, 2015 6:17 PM

Coveo with Sitecore not indexing web database

Hi guys.

When reindexing an item in Sitecore, it appears in the master but not on the web.

In the log occur this error:

ManagedPoolThread #4 11:24:57 WARN  The index sitecore_master_index has already been initialized.
ManagedPoolThread #4 11:24:57 INFO  Using existing collection 'Sitecore Search Provider'.
ManagedPoolThread #4 11:24:57 INFO  Getting Sitecore fields with databases: master
ManagedPoolThread #4 11:24:58 INFO  Total Field Count : 1928, Actual Field Count : 1160
ManagedPoolThread #4 11:24:59 INFO  Using existing source 'sitecore_master_index - DOTZ_PRDCM'.
ManagedPoolThread #4 11:24:59 INFO  The item {F05F2547-7C69-4BD0-A6D6-561341F0F373} in the language pt-BR and version 1 has been updated.
ManagedPoolThread #7 11:25:00 ERROR An error while Initializing occurred
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Coveo.SearchProviderBase
   at Coveo.SearchProvider.ProviderIndexBase.Initialize(IIndexDocumentPropertyMapper`1 p_DocumentTypeMapper)

Any idea what could be?

Gravatar for vlambert@coveo.com

Comment by vince, Jul 26, 2015 8:01 AM

The error in the log does not seem to be related to the web index missing the item. This error appears for the sitecoremasterindex in your case, and we have seen it in other perfectly working indexes. This is a known issue on our side, but the report of the error is false.

Regarding your issue, I assume your item is published already. When you reindex only the item, in the web database, do you see it appearing in the CES console? You should see something like

Indexed - sitecore://database/web/ItemId/{44428794-05A4-4BE6-90D6-7D0BF128017E}/Language/en/Version/1
1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Aug 4, 2015 5:24 PM

When you say "reindexing an item in Sitecore", do you mean doing a "re-index tree" operation (Content Editor > Developer toolbar > Re-Index Tree) on it?

If that's the case, note that this operation is executed on the Content Editor current database only. Sitecore will only re-index the item in the indexes that crawls this database. The default Content Editor database is master. To change the Content Editor current database, you need to open the Sitecore Desktop application and click on the database button at the right side of the start menu bar.

Ask a question