-->
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: Search updating indexes during persistent object update
PostPosted: Wed Apr 15, 2009 7:05 am 
Newbie

Joined: Thu Apr 24, 2008 4:55 am
Posts: 6
Hi All,

I'm using search 3.1.0.

I have a object called Feed which represents an RSS feed and an object called News which represents a RSS feed item.

Data is indexed in lucene, in a way where the keywords of the RSS feed are also indexed as part of the News, so that when the user enters some keywords that appear in the RSS feed description, they would get all data possible including the RSS feed and the news related to it.

So basically I use @ContainedIn and @IndexedEmbeded on the references to make that happen.

Sometimes I update a field on the Feed object called "state". This field is not indexed. Note to generalize the matter lets say the problem refers to all non indexed fields being modified.

My problem is whenever it is changed, Hibernate search removes the feed and all news items from the index and then reindexes them.

The real cost of the operation was to change a byte in the DBMS now we:
1. Fetch the news collection every time the state is modified.
2. Reindexing every news item, and the feed itself including analisys, term creation, IO etc.
3. Perform needless IO operations.
4. Potentially de-optimize the index, so now search is slower.
5. static filters and caches have to be re-generated due to the indexreader being out of date.

I have read some posts about this on the forum, but none of the answers seem to deal with the issue.

Does anyone have an idea on how to solve this problem?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 16, 2009 10:12 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Not really possible today but I think solving
http://opensource.atlassian.com/project ... SEARCH-361
would do what you want. that's an easy patch btw if someone is interested to contribute.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 16, 2009 10:23 am 
Newbie

Joined: Thu Apr 24, 2008 4:55 am
Posts: 6
sure post the patch to the bug please


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.