Does anyone already use LinqToLucene with NHibernate.Search?
H开发者_运维技巧ow to getting started ?
Thanks.
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.
精彩评论