Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate NHibernate with Lucene.Net

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)?

like image 300
Arnis Lapsa Avatar asked Sep 28 '09 08:09

Arnis Lapsa


2 Answers

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/

like image 154
Jan Willem B Avatar answered Nov 17 '22 12:11

Jan Willem B


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.

like image 3
Andrey Shchekin Avatar answered Nov 17 '22 13:11

Andrey Shchekin