Situation
I have the following Sitecore Lucene configuration:
- New index, type = "Sitecore.Search.Index, Sitecore.Kernel"
- Contains two crawlers (a custom crawler that adds additional βcalculatedβ fields)
- Each crawler processes its own template GUID, because it contains different calculated fields.
Problem
The calculated fields are based on the parent / child fields. As Lucene in Sitecore seems to be configured, only that only documents for items that have actually been changed are updated in the index.
Thus, the calculated fields on other documents (which are required, there are search terms in these fields) are not updated.
Question
Is it possible to manually initiate the update of other elements in the index?
I studied the inheritance of Sitecore.Search.Index, but none of the corresponding methods are virtual.
In addition, I tried to subscribe to IndexingProvider-events:
public event EventHandler OnRemoveItem;
public event EventHandler OnRemoveVersion;
public event EventHandler OnUpdateItem;
The idea was to trigger the OnUpdateItem event in the DatabaseCrawler for other items that need to be updated, but you cannot fire this event from outside the IndexingProvider.
Is there a way to initiate an index update without a complete rebuild that does not include saving / republishing these other elements?
Thanks!
Sander
source share