public final class LuceneIndexSettings extends Object
Constants in this class are to be appended to a prefix to form a property key;
see IndexSettings for details.
| Modifier and Type | Class and Description |
|---|---|
static class |
LuceneIndexSettings.Defaults
Default values for the different settings if no values are given.
|
static class |
LuceneIndexSettings.ShardingRadicals
Configuration property keys for sharding, without the
prefix. |
| Modifier and Type | Field and Description |
|---|---|
static String |
SHARDING_NUMBER_OF_SHARDS
The number of shards to create for the index,
i.e.
|
static String |
SHARDING_PREFIX
The prefix for sharding-related property keys.
|
static String |
SHARDING_SHARD_IDENTIFIERS
The list of shard identifiers to accept for the index.
|
static String |
SHARDING_STRATEGY
The sharding strategy, deciding the number of shards, their identifiers,
and how to translate a routing key into a shard identifier.
|
public static final String SHARDING_PREFIX
public static final String SHARDING_STRATEGY
Expects a String, such as "hash". See the reference documentation for a list of available values.
Defaults to LuceneIndexSettings.Defaults.SHARDING_STRATEGY (no sharding).
public static final String SHARDING_NUMBER_OF_SHARDS
Only available for the "hash" sharding strategy.
Expects a strictly positive Integer value, such as 4, or a String that can be parsed into such Integer value.
No default: this property must be set when using the "hash" sharding strategy.
public static final String SHARDING_SHARD_IDENTIFIERS
Only available for the "explicit" sharding strategy.
Expects either a String containing multiple shard identifiers separated by commas (','),
or a Collection<String> containing such shard identifiers.
No default: this property must be set when using the "explicit" sharding strategy.
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.