-->
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: Updating subset of fields in index
PostPosted: Tue Feb 05, 2013 10:57 am 
Newbie

Joined: Wed Jan 06, 2010 6:34 am
Posts: 8
Location: Amsterdam (NL)
Hello

I am rebuilding the entire index using the flushToIndexes() approach (Hibernate Search v3.3). I purge the index first, the rebuild the entire content.
This works fine on principle but performance is not great, due to loads of attachments linked to my entities.

Is it possible to perform a partial update somehow re-indexing the entities but skipping certain fields (if not empty)?
On principle the content of the attachment does not change across release of my apps, so I could do without (once they get indexed after the first upload)

Any idea/help?

Thanks in advance
Beppe


Top
 Profile  
 
 Post subject: Re: Updating subset of fields in index
PostPosted: Tue Feb 05, 2013 7:53 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi Beppe,
no I'm sorry the internal design of Lucene doesn't allow for partial updates of fields: when using Lucene we have to re-insert and re-analyze all input for any small change. That's the cost we have to pay to get such nice query capabilities.

Something you could try is to use the MassIndexer instead, at least it can use multiple threads so if you have more CPUs you can use them all.

What kind of attachments are you linking?

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


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.