Custom Lucene Sharding with Hibernate Search

Posted by Timo Westkämper on Stack Overflow See other posts from Stack Overflow or by Timo Westkämper
Published on 2010-05-17T15:29:50Z Indexed on 2010/05/21 7:40 UTC
Read the original article Hit count: 334

Filed under:
|
|

Has anyone experience with custom Lucene sharding / paritioning using Hibernate Search?

The documentation of Hibernate Search says the following about Lucene Sharding :

In some cases, it is necessary to split (shard) the indexing data of a given entity type into several Lucene indexes. This solution is not recommended unless there is a pressing need because by default, searches will be slower as all shards have to be opened for a single search. In other words don't do it until you have problems :)

Has anyone implemented sharding in such a way for Hibernate Search that also queries can be target to one of the shards?

In our case we have Lucene queries that should target only one shard per query.

© Stack Overflow or respective owner

Related posts about lucene

Related posts about sharding