Copied to clipboard

Flag this post as spam?

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

  • Sam Moore 27 posts 112 karma points
    Jun 22, 2011 @ 16:05
    Sam Moore

    Is there a way to re-index a site using Examine programmatically?

    I have a site that has about 20,000 published nodes, and I need to somewhat frequently reindex a lot of the nodes to make sure that the search results are up to date. Is there any way to trigger a reindex programmatically?

    I'm using Lucene.Net with UmbracoExamine.

    I know that I can delete the index folders and then restart the application pool, but the rebuilding of the index is tied to the first request's (after the reboot) lifecycle, right? So then if the request times out (which it definitely will with that many nodes), then i'm stuck... Any ideas?


  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Jun 22, 2011 @ 16:54
    Lee Kelleher

    Hi Sam,

    Take a look at the Examine Index Admin package - the source code is provided with it.

    Essentially on the IndexProvider, there is a method called "RebuildIndex".

    Cheers, Lee.

  • Braydie 148 posts 346 karma points
    Jun 22, 2011 @ 18:07

    Darren Ferguson's package is also pretty neat:



Please Sign in or register to post replies

Write your reply to: