public interface ShardParams
Modifier and Type | Field and Description |
---|---|
static String |
_ROUTE_ |
static String |
DISTRIB_SINGLE_PASS
Force a single-pass distributed query? (true/false)
|
static String |
IDS
IDs of the shard documents
|
static String |
IS_SHARD
whether the request goes to a shard
|
static String |
REPLICA_LOCAL
Value denoting local replicas
|
static String |
REPLICA_RANDOM
Value denoting randomized replica sort
|
static String |
REPLICA_STABLE
Value denoting stable replica sort
|
static String |
REQUIRE_ZK_CONNECTED
Throw an error from search requests when the "shards.tolerant" param
has this value and ZooKeeper is not connected.
|
static String |
ROUTING_DIVIDEND
configure dividend param for stable replica sort
|
static String |
ROUTING_HASH
configure hash param for stable replica sort
|
static String |
SHARD_NAME
The requested shard name
|
static String |
SHARD_URL
The requested URL for this shard
|
static String |
SHARDS
the shards to use (distributed configuration)
|
static String |
SHARDS_INFO
Request detailed match info for each shard (true/false)
|
static String |
SHARDS_PREFERENCE
Shards sorting rules
|
static String |
SHARDS_PREFERENCE_NODE_WITH_SAME_SYSPROP
Node with same system property sort rule
|
static String |
SHARDS_PREFERENCE_REPLICA_BASE
Replica base/fallback sort rule
|
static String |
SHARDS_PREFERENCE_REPLICA_LOCATION
Replica location sort rule
|
static String |
SHARDS_PREFERENCE_REPLICA_TYPE
Replica type sort rule
|
static String |
SHARDS_PURPOSE
query purpose for shard requests
|
static String |
SHARDS_QT
The Request Handler for shard requests
|
static String |
SHARDS_ROWS
per-shard start and rows
|
static String |
SHARDS_START |
static String |
SHARDS_TOLERANT
Should things fail if there is an error? (true/false/"requireZkConnected")
|
Modifier and Type | Method and Description |
---|---|
static boolean |
getShardsTolerantAsBool(SolrParams params)
Parse the "shards.tolerant" param from
params as a boolean;
accepts "requireZkConnected" as a valid value indicating false . |
static final String SHARDS
static final String SHARDS_ROWS
static final String SHARDS_START
static final String IDS
static final String IS_SHARD
static final String SHARD_URL
static final String SHARD_NAME
static final String SHARDS_QT
static final String SHARDS_INFO
static final String SHARDS_TOLERANT
static final String SHARDS_PURPOSE
static final String SHARDS_PREFERENCE
static final String SHARDS_PREFERENCE_REPLICA_TYPE
static final String SHARDS_PREFERENCE_REPLICA_LOCATION
static final String SHARDS_PREFERENCE_NODE_WITH_SAME_SYSPROP
static final String SHARDS_PREFERENCE_REPLICA_BASE
static final String REPLICA_LOCAL
static final String REPLICA_RANDOM
static final String REPLICA_STABLE
static final String ROUTING_DIVIDEND
static final String ROUTING_HASH
static final String _ROUTE_
static final String DISTRIB_SINGLE_PASS
static final String REQUIRE_ZK_CONNECTED
static boolean getShardsTolerantAsBool(SolrParams params)
params
as a boolean;
accepts "requireZkConnected" as a valid value indicating false
.
By default, returns false
when "shards.tolerant" is not set
in params
.Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.