-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: NHibernate Search?
PostPosted: Fri Jan 12, 2007 5:47 pm 
Newbie

Joined: Fri Jan 12, 2007 4:46 pm
Posts: 3
I see that Hibernate Search requires Apache Lucene, and that there is a Lucene.NET in incubation according to the Apache site.

Will there be an all-.NET version of NHibernate Search, and if not is it possible that NHibernate Core will somehow use Hibernate Search?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 12, 2007 8:24 pm 
Contributor
Contributor

Joined: Sat Sep 24, 2005 11:25 am
Posts: 198
I wasn't even aware of that, wow. This looks like a _really_ cool idea.

At the moment, this doesn't exist for NHibernate, the Lucene.net project is a fairly mature one, and it is used by many projects.
Without checking the code, I can pretty much say that it will not be possible to just use Hibernate Search.

About porting it, this will be done in the usual way.
Someone that wants it will port the functionality when it is needed.

I may (or may not) find use for this in my next project and port it, but that is a very cautious statement.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 12, 2007 9:14 pm 
Contributor
Contributor

Joined: Sat Sep 24, 2005 11:25 am
Posts: 198
Okay, I took a look at the code, and it is a fairly big task.

It involves porting Hibernate Events to NHibernate, and I don't think that we will do that for 1.2

A partial solution may be to use an Interceptor to do the indexing directly, since that does exist in NH 1.2.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 1:55 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Interceptor + transaction.afterCompletion() if you have a similar concept should be enough to trigger the right operations.
You'll have to do some late initialization though, since you don't have access to the list of entities.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 16, 2007 12:24 pm 
Newbie

Joined: Fri Jan 12, 2007 4:46 pm
Posts: 3
Many thanks for checking into it.

We're a crossplatform shop - I'm a .NET/J2EE architect and I'd like my respective leads able to justify using tools like this widely across our systems. As is common enough in such environments we have executive/senior management in favor of Java while the perform folks prefer a blend in the back to mid tier and .NET on the mid to outer. Anything we can do to get the best of both platforms is deeply appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 16, 2007 2:34 pm 
Contributor
Contributor

Joined: Sat Sep 24, 2005 11:25 am
Posts: 198
Just to note, do not expect it shortly, I am very busy at the moment...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 17, 2007 11:33 am 
Newbie

Joined: Fri Jan 12, 2007 4:46 pm
Posts: 3
We don't. :-) Wish I had the time to contribute myself.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.