[
https://issues.jboss.org/browse/HIBERNATE-103?page=com.atlassian.jira.plu...
]
Steve Ebersole commented on HIBERNATE-103:
------------------------------------------
This is not the correct project to report Hibernate issues under. This Jira project is for
reporting issues in the integration between Hibernate and WildFly. To report issues in
Hibernate, please use
https://hibernate.atlassian.net. Thanks.
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)