-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate search and solr
PostPosted: Wed May 23, 2012 3:02 am 
Regular
Regular

Joined: Thu Jun 16, 2011 12:03 pm
Posts: 94
Hi all,

Lately i have been thinking about integrating Hibernate Search with Solr. What i would like to have is Solr using Hibernate Search indexes. I could not start the implementation because i am working in other things at this moment. I would like to know any references or ideas....

I don't know if HS puts some metainformation in the indexes and solr can not read them....i also think that i have to create an schema in solr with the index fields...

Thanks everybody,

Hibernator,


Top
 Profile  
 
 Post subject: Re: Hibernate search and solr
PostPosted: Wed May 23, 2012 10:04 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi Hibernator,
that's a nice idea and shouldn't be too hard to get working.

Quote:
I don't know if HS puts some metainformation in the indexes and solr can not read them...

Hibernate Search doesn't write directly to the index but uses Lucene, so everything written by Search can obviously be read (and searched for) by Solr too.
Basically it writes in the index what you have annotated on your entities, so you have good control of it. The only exception is the class name, it's a mandatory field which we need to store in the index, but Solr can ignore it, or make good use of it for some filters if you like.

Quote:
i also think that i have to create an schema in solr with the index fields...

That's right, but should be quite easy. You can inspect the index (assuming it's not empty) with Luke and verify how closely it matches your entity mapping.

It would be very nice if you could contribute a tool which generates such a schema directly from our mapping; it would need some changes in the DocumentBuilder in Hibernate Search to "export" it's metadata information.. feel free to ask more details as needed, or join the developer mailing list http://hibernate.org/community/mailinglists

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.