-->
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.  [ 3 posts ] 
Author Message
 Post subject: Hibernate Search updating the index unnecessarily
PostPosted: Fri Feb 09, 2007 9:23 am 
Newbie

Joined: Tue Oct 26, 2004 4:47 pm
Posts: 7
Hello

I have a working integration of Hibernate Search using annotations in my project. I have a Post domain object which exposes a @DocumentId to Lucene but all other fields are normal fields and are not indexed.

In a transaction, I am executing post.setViews(number) and then a session.merge() afterwards to persist. I am seeing here though is that post-commit the index is updated even though no indexed fields have changed. Note that the primarykey/@DocumentId of course does not change.

Ideally I think that the index would only be updated when the indexed content of the domain object was also updated. Is this functionality not yet in Hibernate Search, or have I misconfigured something?

thanks
-Collin


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 10, 2007 2:21 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Ah interesting idea. I am not usre it's possible but definitively, it worth a try (reusing the Hibernate dirty detector)
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-5

Question for you, what's the point of indexing the id and no other field?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 13, 2007 6:10 pm 
Newbie

Joined: Tue Oct 26, 2004 4:47 pm
Posts: 7
Heh, good question! There is no point, actually. The class was marked for indexing, but the fields to index had not yet actually been implemented. We saw the behavior before we got to that point. Thanks for creating the JIRA issue.


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