Ok so ive been some good advise as how to do this by hooking the DocumentWrite method of Examine however Inheriting from ApplcationBase doesnt seem to work any more in 4.5 as these event never fire, any ideas ? and when say any events i mean i cant get any event to fire.
I've had no problems using ApplicationBase in 4.5.
Alternatively you can override the umbraco.Global class and create your own global.asax (make sure you delete App_global.asax.dll too) and then override the Application_State method and attach the event there.
Your post is great once i worked out that it has to be used against the latest 4.5.1 checkin to work how ever i still have one big problem inheriting from applicationbase in the latest version doesnt work and i cant seem to find umbraco.global lol
Eaxmine and storing orginal text in lucene index
Ok so ive been some good advise as how to do this by hooking the DocumentWrite method of Examine however Inheriting from ApplcationBase doesnt seem to work any more in 4.5 as these event never fire, any ideas ? and when say any events i mean i cant get any event to fire.
I've had no problems using ApplicationBase in 4.5.
Alternatively you can override the umbraco.Global class and create your own global.asax (make sure you delete App_global.asax.dll too) and then override the Application_State method and attach the event there.
For future reference there's information on storing the original text on Examine here: http://farmcode.org/post/2010/08/23/Text-casing-and-Examine.aspx
Your post is great once i worked out that it has to be used against the latest 4.5.1 checkin to work how ever i still have one big problem inheriting from applicationbase in the latest version doesnt work and i cant seem to find umbraco.global lol
Robodog,
See http://ismailmayat.wordpress.com/2009/05/19/integrating-log4net-into-umbraco-site/ about creating your own global.asax however i have been using ApplicationBase with no issues in 4.5.1 can you paste your code see if we can see anything there.
Regards
Ismail
Thanks guys but ive got it working now think i had some strangeness with my gac.
is working on a reply...