This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate Search indexing...w/ Compass Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Search indexing...w/ Compass" Watch "Hibernate Search indexing...w/ Compass" New topic
Author

Hibernate Search indexing...w/ Compass

Nina Anderson
Ranch Hand

Joined: Jul 18, 2006
Posts: 148
Hi guys,

I have an exist web application consisting of Struts + Hibernate + Spring. I want to integrate it with Hibernate Search. The problem is, I don't want the Lucene index to reside on a local file directory. I was the index to be store in the database instead. I was reading that COMPASS is the way to integrate database indexing with Hibernate Search Lucene component.

Does anyone have examples or tutorials to get me started with configuring Compass with Hibernate + Spring + Lucene?

Thanks in advance....
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Just the docs

http://www.opensymphony.com/compass/versions/1.2M3/html/gps-hibernate.html

and a blog entry.

http://www.kimchy.org/embedded-hibernate-with-compass/

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Nina Anderson
Ranch Hand

Joined: Jul 18, 2006
Posts: 148
Great...thanks for your suggestion. This is just what I need.

I problem I'm having now is to figure out how I can change my current search DAO that uses Hibernate Search (lucene) to Compass.

It's not clear when the index is created using Compass and how you implement the Full-text search DAO.

This is my DAO:





This is my Test class:


Thanks is Advance!!!
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Those are good questions. Unfortunately those two links where just the first two that popped up when I did a Google search. I have not used Compass at all.

Good Luck and maybe someone else on this forum has used Compass and can help you out.

Mark
 
GeeCON Prague 2014
 
subject: Hibernate Search indexing...w/ Compass