-->
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: is there Java Library API for indexing no database property
PostPosted: Fri Jun 19, 2009 3:12 pm 
Newbie

Joined: Fri Jun 19, 2009 2:56 pm
Posts: 2
Hi All,

I'm new to hiberante search and have a project need to be finished within several days. So it's too much for me to read the whole Hibernate Search In Action book.

I need to use Hibernate search API to do the index and search for properties which is not going to save to database. Could anybody give me any idea how to do it?

I know for Database entity, I can just add @Indexed annotation inside the Entity class. But for non database property, how can I index them and search it with Hiberatne search later time.

Thanks very much,

xii


Top
 Profile  
 
 Post subject: Re: is there Java Library API for indexing no database property
PostPosted: Tue Jun 23, 2009 5:15 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
A ClassBridge could be a solution. Have a look at the examples for ClassBridges in the online documentation. Since you don't have the time to read "Hibernate Search in Action" it might be a good idea to at least read the online manual. It might save you a lot of grief ;-)

In a class bridge you get passed the whole entity and the Lucene document. So it is up to you what and how you index.

--Hardy


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.