-->
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.  [ 4 posts ] 
Author Message
 Post subject: Synchronization of indexes and record
PostPosted: Fri Oct 08, 2010 6:04 am 
Beginner
Beginner

Joined: Tue Sep 28, 2010 5:14 am
Posts: 25
Hi,

I have an entity called 'CONTACT', for which I can index the record on insertion and can also search those records using hibernate search.

However, now I would like to index those records which were not inserted thorugh hibernate(search) transactions. Is there any way that I could index an unindexed record in database using Hibernate Search.

Cheers,
Manoj


Top
 Profile  
 
 Post subject: Re: Synchronization of indexes and record
PostPosted: Fri Oct 08, 2010 8:26 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
hi,
if it's about one entity (or some), use FullTextSession.index()
if you want to rebuild it all, read about the Massindexing chapters in the reference documentation to find about different strategies.

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


Top
 Profile  
 
 Post subject: Re: Synchronization of indexes and record
PostPosted: Fri Oct 08, 2010 8:29 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Sure. There is a manual indexing API which can be used to create an index for already existing entities in the db. There is also the mass indexer API for massive data amounts. Have a look at the online documentation for more info.

--Hardy


Top
 Profile  
 
 Post subject: Re: Synchronization of indexes and record
PostPosted: Fri Oct 08, 2010 11:21 am 
Beginner
Beginner

Joined: Tue Sep 28, 2010 5:14 am
Posts: 25
Thanks a lot.


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