views:

65

answers:

1

Does anyone already use LinqToLucene with NHibernate.Search?

How to getting started ?

Thanks.

+2  A: 

LinqToLucene and NHibernate.Search are incompatible. They both do the job of providing the ability to index and search based upon entities. They are complete by themselves.

The nice thing about NHibernate.Search is the integration with NHibernate to help maintain the index. However, you if are using NHibernate and LinqToLucene you can still achieve most of the same integration that NHibernate.Search has by implementing your own NHibernate Events.

A good example of implementing an event is here:

http://nhforge.org/wikis/howtonh/creating-an-audit-log-using-nhibernate-events.aspx

So to create your own, you would just create a post-insert, post-update, and post-delete event and make your co-responding LinqToLucene actions here.

Andrew Smith