-->
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: HS: Index updating wrong, mistake in the documentation
PostPosted: Tue May 08, 2007 4:00 am 
Newbie

Joined: Fri Apr 20, 2007 10:31 am
Posts: 10
Hi,


there are 2 things i found out, while a had e few time with Hibernate Search again.

The index update seems to be wrong.

If i update an Object, it´s fields are written to the Index correctly - but the old entry stays in the index.
So you will find things, that don´t exist any more.
I think, this isn´t very practical.


Another thing is a mistake in the Documentation.
The docs say, that an @IndexedEmbedded Object don´t need to be @Indexed too.
But this is wrong! It will be indexed, but if you do an update on this child, this will only appear in the index, if the child is @Indexed.

The problem seems to be, that the SearchFactory does not have a DocumentBuilder in documentBuilders for the child. And you can only build a DocumentBuilder for an @Indexed Class.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 08, 2007 9:25 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Can you provide a running test case for your first problem? I cannot reproduce it.

For the second, the parent Document will be updated when the child is updated even if it is not @Indexed provided that you have defined a pointed back to the parent through @ContainedIn. I need to rework the documentation in this area, it seems to confuse a lot of people.

_________________
Emmanuel


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.