NHibernate.Seach

0 views
Skip to first unread message

Ciprian Sabolovits

unread,
Apr 3, 2008, 9:28:45 PM4/3/08
to nhusers
I've run recently in a situation where Nhibernate Search would be very
useful. I've search over the internet I've seen that Ayende has ported
it from the Java world but cannot find any way to get it. The link to
svn on Ayende's blog is broken so if anyone knows where I can take the
sources or at least the binaries please let me know.
Thanks.

Dario Quintana

unread,
Apr 3, 2008, 11:08:34 PM4/3/08
to nhu...@googlegroups.com
Hi,

You can checkout the NHibernate.Search code here:
https://nhcontrib.svn.sourceforge.net/svnroot/nhcontrib/trunk/

For examples you find here:
A simple one: http://darioquintana.com.ar/blogging/?p=21
Complex examples: NHibernate.Resources - 22-feb-2008.7z
--
Dario Quintana
http://darioquintana.com.ar

Fabio Maulo

unread,
Apr 4, 2008, 12:16:30 AM4/4/08
to nhu...@googlegroups.com
This is become another FAQ...
NHibernate.Contrib appear unkonowed.
Bye.
Fabio Maulo.

Emanuele DelBono

unread,
Apr 4, 2008, 3:00:49 AM4/4/08
to nhu...@googlegroups.com
You can find another simple example here:
http://blog.codiceplastico.com/?p=76

HTH
ema
http://blog.codiceplastico.com

Ciprian Sabolovits

unread,
Apr 4, 2008, 9:40:59 AM4/4/08
to nhusers
Many thanks for the link and for the examples.

Ciprian Sabolovits

unread,
Apr 4, 2008, 10:55:32 AM4/4/08
to nhusers
Now, I've managed to get some insight in the NhibernateSearch. I do
have one problem though. May be I'm doing this wrong and in that case
any help would be more than welcome. Everything works fine whenever I
write the data using a session factory with the SearchInterceptor
associated to every opened session.
In other words let's assume the following test fixture:
- on setup create the data and store it into the database (using a
session)
- on test : execute a hibernate search (using another session)

This would work if the sessions would both use the interceptor. The
test result would be as expected.
But then this would fail if for example the writing of the data is
done using a simple session with no interceptor even though the second
one would use the search interceptor. Which made me think and
actually, Ive checked this out, that if you already have some data
into the database that data is not indexed and so if you are doing a
search those records will not be searched for. Shouldn't the
interceptor automatically index these records on load and then apply
the full text filter?

Am I right? Is this the correct behavior? Is there any solution to
this because I have to search in some table from one database and I
can't use hibernate on every write with the full text index associate
to the session. More than one app is writing to that table and my
search should consider all data not just the data written by hibernate
using the so called "SearchSession".

Ciprian Sabolovits

unread,
Apr 4, 2008, 10:55:45 AM4/4/08
to nhusers
Reply all
Reply to author
Forward
0 new messages