Java Mailing List Archive

Home » the NHibernate development list »

[NHibernate-development] NHibernate Search usage

Jonathan Ariel


Replies: Find Java Web Hosting

Author LoginPost Reply
I've been messing around with NHibernate.Search.
So I couldn't save an entity because I'm getting a NullReferenceException in the SearchInterceptor, on the PostFlush method. When debugging I saw that the session is null in there.
I'm doing to following in order to add the interceptor to the session factory:

            ISessionFactory sessionFactory =
                new Configuration().Configure().SetInterceptor(new SearchInterceptor()).BuildSessionFactory();

I'm not sure if it's the way we're supposed to use it.


This email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
Nhibernate-development mailing list
©2008 - Jax Systems, LLC, U.S.A.