Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Corné Strijkert 80 posts 456 karma points c-trib
    Oct 20, 2020 @ 15:13
    Corné Strijkert
    0

    How to index specific content with Examine in Load balanced setup

    Hi All,

    I do I reindex specific content with Examine in Umbraco 8? I would like to index content in a load balanced configuration. On the server I've implemented the TransformingIndexValues event to rewrite nested content (json) to plain text.

    When I publish content on the master server, this event is successfully fired, but on the slave frontend nodes this method is not fired.

    So, my idea was to listen for cache updates from the master server width

    ContentCacheRefresher.CacheUpdated += ContentCacheRefresherOnCacheUpdated;

    and then reindexing this specific node.

    But, I can't find the right way to do that. On the IIndex I only can find methods that requires a ValueSet. I don't want to convert IContent to a ValueSet with custom implementation. Must be possible (because I see other Umbraco V7 examples on the forum) to trigger examine to reindex one specific IContent.

    IIndex index;
    index.IndexItem(new ValueSet(???));
    

    Any help much appreciated!

    Corne

Please Sign in or register to post replies

Write your reply to:

Draft