Copied to clipboard

Flag this post as spam?

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


  • Keith Vong 3 posts 73 karma points
    Mar 09, 2022 @ 12:21
    Keith Vong
    0

    Full Text Search index on startup on load balanced servers

    I am looking for a way to reindex nodes using Full Text Search on start-up programmatically. As I have load balanced servers, both public facing websites would need reindexing.

    Alternatively, could all websites be reindexed by triggering a reindex on one website?

  • Søren Kottal 713 posts 4571 karma points MVP 7x c-trib
    Mar 09, 2022 @ 15:17
    Søren Kottal
    0

    Hi Keith

    You can check out how the dashboard handles reindexing her https://github.com/skttl/umbraco-fulltextsearch8/blob/v9/dev/src/Our.Umbraco.FullTextSearch/Controllers/IndexController.cs#L66 and then copy the code to your startup code.

    This could probably be useful for others, so make sure to reply with how you solve it :)

  • Keith Vong 3 posts 73 karma points
    Mar 09, 2022 @ 15:26
    Keith Vong
    0

    Hi Søren, I am doing exactly that. I am creating a Composer class and copying the IndexController code to it :)

    I will post again once I have it working.

    Do you know how the 'fullTextCache' table get updated?

  • Keith Vong 3 posts 73 karma points
    Mar 10, 2022 @ 09:40
    Keith Vong
    0

    Just an update to my solution. As the Full Text Cache doesn't seem to get updated within the Composer, I moved the re-indexing logic to a controller, and calling this controller from the Composer.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies