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?
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?
Thanks!
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.
Darren Ferguson's package is also pretty neat:
http://our.umbraco.org/projects/developer-tools/examine-dashboard
-Braydie
is working on a reply...