简体   繁体   中英

Using LinqToLucene With NHibernate and NHibernate.Search

Does anyone already use LinqToLucene with NHibernate.Search?

How 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM