How to integrate NHibernate with Lucene.Net

2020-06-04 05:00发布

问题:

This is getting quite annoying. Trying to integrate Lucene.Net search with NHibernate and i found only some information from year 07.

Is there a nice up to date tutorial for this? Where to start, what to download etc.?

Is there a way how to set NHibernate.Search metadata elsewhere and not on domain objects using attributes (i don't want to reference any nhibernate related stuff in my Core project)?

回答1:

I wrote a short tutorial on this, http://jwbs-blog.blogspot.com/2009/03/quickstart-guide-for-nhibernatesearch.html

I have no answer on your second question. There is a book on Hibernate.Search, consider reading that book. http://www.manning.com/bernard/



回答2:

Is there a way how to set NHibernate.Search metadata elsewhere and not on domain objects using attributes (i don't want to reference any nhibernate related stuff in my Core project)?

Working on it, please wait (hopefully) a day or two.

Update 1: Done, submitted patch to NHSearch JIRA.

Update 2: This is now in svn trunk (discussion).

Update 3: Added small post on how to make your own mappings.