-->
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: Strange behavior of FullTextSession.index
PostPosted: Fri Sep 16, 2011 9:48 am 
Newbie

Joined: Tue Feb 08, 2011 10:05 am
Posts: 13
The following code
Quote:
fullTextSession.index(object);
fullTextSession.index(object);
fullTextSession.index(object);
rises 3 times indexing of object per transaction. I read the code of FullTextSession class and there are a lot of comments to create cache (I think for this situation). Is it fixed? Which version?

Thank you


Top
 Profile  
 
 Post subject: Re: Strange behavior of FullTextSession.index
PostPosted: Mon Sep 19, 2011 4:20 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

this was addressed as part of HSEARCH-570 and is available since Search 3.3.
The de-duplication happens in WorkPlan#PerEntityWork which keeps track of changes per entity.

I hope this answers your question,
--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.