Dave Burke : Freelance .NET Web Developer specializing in Online Communities

More on Lucene searching in .Text 0.95

To follow up on yesterday's post on adding Lucene searching to my .Text 0.95 blog, ScheduledEvents and Highlighting is now working.

Fixing highlighting was ridiculously obvious after reviewing the QueryIndex.cs code where I noticed the <span class=\"highlight\"... code.  Adding a .highlight class to my skin.css did the trick.

The ScheduledEvents fix was slightly more involved, but thanks to Scott's exception logging additions to 0.96 I was able to track down the problems pretty quickly.  For starters, I didn't have a log_scheduledevents table in my search sql updates.  I was also encountering null exceptions on the 5-minute scheduled walk-through from System.Activator.CreateInstance(Type type).  (Again, discovered from the exception logging information.)  Base event types were not being instantiated from the EVENTS web.config area for SearchEngineSchedule and StatsQueueSchedule.  Adding 0.96 Activator.CreateInstance(type) methods to BaseProvider.Instance() as well as adding a StatsQueueSchedule class in Framework.Tracking eliminated the errors on walk-through.

So I think everything regarding searching, indexing, event scheduling and highlighting is now working properly and I no longer have to generate the search index manually.

 

Comments (4) | Post RSS RSS comment feed

Posted on 1/25/2005 9:19:00 PM by Dave Burke
Categories:
Tags:

Related posts

Comments (4) -

1/26/2005 6:21:00 AM Permalink

Do you have a version of .96 that actually compiles?  I haven't looked into mine in great detail yet, but the stuff I got from vaultpub gave me a couple zillion compile errors.

Looks like Scott broke the build before he started on CS 1.0 Frown

Ryan A. Rinaldi |

1/26/2005 7:00:00 AM Permalink

It compiles but I have yet to enter any users or blogs.  The user/membership/roles model is quite different from 0.95.

Dave Burke |

1/26/2005 5:42:00 PM Permalink

It compiles? Strange. The copy I downloaded few days back doesn't.

There's a few "added a comment", "removed a comment" comments hat's tripping the compiler.

Chee Wee |

1/27/2005 5:58:00 AM Permalink

Chee Wee, you're exactly right.  There are those comment elements here and there.  The compile errors will show you what the issues are and you can address them as they appear.  I was able to walk through the errors (mostly comments as you mentioned), fix them, and have it compile (and run!) in about a half-hour.  As I said before, I haven't entered any users or setup any blogs because of how user data is so different than 0.95.  Good to hear from you.

Dave Burke |


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke