-->
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: Programmatically disabling/enabling automatic indexing?
PostPosted: Wed Mar 12, 2008 2:57 pm 
Newbie

Joined: Wed Mar 12, 2008 2:38 pm
Posts: 2
Location: Rochester, MN
Is it possible to programmatically enable or disable automatic indexing?

The most obvious route seemed to be (for me anyway) Search.setAutoIndexingMode("indexName", false). I looked around here and didn't see anything.

It is interesting that you can't disable auto indexing on an index-by-index level and ideally programmatically do so.

Thanks,
Eric


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 12, 2008 4:35 pm 
Hibernate Team
Hibernate Team

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

you are right - at the moment you can only enable/disable auto-indexing via the configuration. I guess there could be valuable uses cases for this kind of functionality. Maybe you want to open an issue for this?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 13, 2008 3:10 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
What is your use case eric.
The main reason it's not there today is because disabling indexing on one entity and leaving it on on others might lead to data not updated (since there could be relations (@IndexedEmbedded) between them).

_________________
Emmanuel


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.