[jboss-jira] [JBoss JIRA] (HIBERNATE-103) Search default properties are ignored when at least one shard property exist
Steve Ebersole (JIRA)
issues at jboss.org
Thu Nov 19 10:42:00 EST 2015
[ https://issues.jboss.org/browse/HIBERNATE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Ebersole closed HIBERNATE-103.
------------------------------------
Resolution: Rejected
> Search default properties are ignored when at least one shard property exist
> ----------------------------------------------------------------------------
>
> Key: HIBERNATE-103
> URL: https://issues.jboss.org/browse/HIBERNATE-103
> Project: Hibernate Integration
> Issue Type: Bug
> Reporter: Rafal Glowacz
> Assignee: Steve Ebersole
>
> I'm trying to use shared strategy for search. So my basic setup was:
> common.hibernate.search.default.indexBase = /lucene/index
> common.hibernate.search.default.optimizer.operation_limit.max = 1000
> common.hibernate.search.default.optimizer.transaction_limit.max = 1000
> common.hibernate.search.default.directory_provider = org.hibernate.search.store.FSDirectoryProvider
> common.hibernate.search.default.sharding_strategy = com.newbay.search.sharding.strategy.IdShardingStrategy
> common.hibernate.search.blogentry.sharding_strategy.nbr_of_shards = 5
> But this won't work for me because when sharding configuration properties exist then those default ones are completely ignored - I can't understand that. To change this I changed ".default." to ".blogentry." and then I found the bug that the number of properties decides how many shards I want for current index. (nbrOfShards = nbrOfShards >= indexSpecificDefaultProps.size() ?
> nbrOfShards :
> indexSpecificDefaultProps.size();)
> So in this case I can't do anything. I'm looking for such config:
> common.hibernate.search.default.indexBase = /lucene/index
> common.hibernate.search.default.optimizer.operation_limit.max = 1000
> common.hibernate.search.default.optimizer.transaction_limit.max = 1000
> common.hibernate.search.default.directory_provider = org.hibernate.search.store.FSDirectoryProvider
> common.hibernate.search.default.sharding_strategy = com.newbay.search.sharding.strategy.IdShardingStrategy
> common.hibernate.search.website.sharding_strategy.nbr_of_shards = 2
> common.hibernate.search.website.indexBase = /lucene/website
> common.hibernate.search.blogentry.sharding_strategy.nbr_of_shards = 5
> common.hibernate.search.blogentry.indexBase = /lucene/blogentry
> But it doesn't work for now.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list