-->
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: Sharding all indexes for multi-tenancy
PostPosted: Wed Oct 20, 2010 4:52 am 
Newbie

Joined: Thu Sep 10, 2009 9:59 am
Posts: 4
Hi,

we're are building a multi-tenancy capable application and I'm trying to shard the search indexes based on the tenant IDs. I think I understood IndexShardingStrategies and also had a look ad CustomerShardingStrategy. The one problem I currently have is that I have to configure the sharding strategy for each index/indexed entity

hibernate.search.<indexName>.sharding_strategy.nbr_of_shards=5
hibernate.search.<indexName>.sharding_strategy=my.shardingstrategy.Implementation

Is there a way to apply this configuration for all of my indexes at once?


Top
 Profile  
 
 Post subject: Re: Sharding all indexes for multi-tenancy
PostPosted: Fri Oct 22, 2010 9:51 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Have you tried to use 'default' for <indexName>? That should work and apply for all indexes.

--Hardy


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.