SaaS CMS has officially launched! Learn more now.

Incremental Search Index - CatalogIndexBuilder Not Processing Products



I am using Optimizely Search (not Search & Navigation) for indexing product catalog content. I extended the CatalogIndexBuilder to add some additional calculated fields to the indexer. The issue I am having is when I update ProductContent in the UI and then run the Incremental Search Index scheduled job, the custom indexer does not get triggered for the updates on the product. If I update VariationContent in the UI and then run the Incremental Search Index scheduled job, the customer indexer does get triggered for the updates on the variant. I was wondering why the indexer is not getting triggered when I update ProductContent.

This is the documentation I was following while creating my custom Indexer:

I was also using the Quicksilver project as an example.

Specifically in the indexer in the example project they are limiting to ProductContent and that works.

protected override void OnCatalogEntryIndex(ref SearchDocument document, CatalogEntryDto.CatalogEntryRow entry, string language)
            switch (entry.ClassTypeId)
                case EntryType.Package:
                case EntryType.Bundle:
                case EntryType.Product:
                    UpdateSearchDocument(ref document, entry.Code, language);

Is there some setting that I do not know about that disables ProductContent from getting processed? Or does the Incremental Search Index scheduled job not ever process ProductContent?



Jul 22, 2022 22:14

DId you update your to use your new CatalogIndexer? 

  <Indexers basePath="SEARCH_INDEX_NETWORK_PATH">
    <add name="catalog" type="Mediachase.Search.Extensions.Indexers.CatalogIndexBuilder, Mediachase.Search.Extensions" />
Jul 23, 2022 8:50

The was updated to use the new CatalogIndexer. The issue is when I update a VariantContent in the product catalog the custom indexer is triggered but when I update a ProductContent the custom indexer does not get triggered.

Jul 24, 2022 22:36

Could you debug to see if it even runs into OnCatalogEntryIndex ?

Jul 25, 2022 8:44

It does not get into my custom OnCatalogEntryIndex method when the product is updated.

Jul 26, 2022 22:45

How do you update your product. If memory serves, OnCatalogEntryIndex is only triggered if the CatalogEntryDto is updated, not the MetaObject. i.e. if you update the properties of a product, it is not triggered 

Jul 27, 2022 6:16

Your memory serves you correctly. Thanks. The OnCatalogEntryIndex is not triggered for a product when the MetaObject is updated, only when CatalogEntryDto is updated. The interesting thing is the OnCatalogEntryIndex is triggered for a variant when either the MetaObject is updated or the CatalogEntryDto is updated.

I think I am going to try to use the PublishedContent event to trigger a CatalogEntryDto save when either the variant or product is published so that the Incremental Search Index will trigger.

Jul 27, 2022 16:04
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.