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?
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.
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?
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 :)
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?
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.
is working on a reply...