Package org.apache.solr.common.params
Interface ShardParams
-
public interface ShardParams
Parameters used for distributed search. When adding a new parameter here, please also add the corresponding one-line test case in the ShardParamsTest class.
-
-
Field Summary
Fields Modifier and Type Field Description static String
_ROUTE_
static String
DISTRIB_SINGLE_PASS
Force a single-pass distributed query? (true/false)static String
IDS
IDs of the shard documentsstatic String
IS_SHARD
whether the request goes to a shardstatic String
REPLICA_LOCAL
Value denoting local replicasstatic 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
SHARD_URL
The requested URL for this shardstatic 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 rulesstatic String
SHARDS_PREFERENCE_REPLICA_LOCATION
Replica location sort rulestatic String
SHARDS_PREFERENCE_REPLICA_TYPE
Replica type sort rulestatic String
SHARDS_PURPOSE
query purpose for shard requestsstatic String
SHARDS_QT
The Request Handler for shard requestsstatic String
SHARDS_ROWS
per-shard start and rowsstatic String
SHARDS_START
static String
SHARDS_TOLERANT
Should things fail if there is an error? (true/false/"requireZkConnected")
-
Method Summary
Static Methods Modifier and Type Method Description static boolean
getShardsTolerantAsBool(SolrParams params)
Parse the "shards.tolerant" param fromparams
as a boolean; accepts "requireZkConnected" as a valid value indicatingfalse
.
-
-
-
Field Detail
-
SHARDS
static final String SHARDS
the shards to use (distributed configuration)- See Also:
- Constant Field Values
-
SHARDS_ROWS
static final String SHARDS_ROWS
per-shard start and rows- See Also:
- Constant Field Values
-
SHARDS_START
static final String SHARDS_START
- See Also:
- Constant Field Values
-
IDS
static final String IDS
IDs of the shard documents- See Also:
- Constant Field Values
-
IS_SHARD
static final String IS_SHARD
whether the request goes to a shard- See Also:
- Constant Field Values
-
SHARD_URL
static final String SHARD_URL
The requested URL for this shard- See Also:
- Constant Field Values
-
SHARDS_QT
static final String SHARDS_QT
The Request Handler for shard requests- See Also:
- Constant Field Values
-
SHARDS_INFO
static final String SHARDS_INFO
Request detailed match info for each shard (true/false)- See Also:
- Constant Field Values
-
SHARDS_TOLERANT
static final String SHARDS_TOLERANT
Should things fail if there is an error? (true/false/"requireZkConnected")- See Also:
- Constant Field Values
-
SHARDS_PURPOSE
static final String SHARDS_PURPOSE
query purpose for shard requests- See Also:
- Constant Field Values
-
SHARDS_PREFERENCE
static final String SHARDS_PREFERENCE
Shards sorting rules- See Also:
- Constant Field Values
-
SHARDS_PREFERENCE_REPLICA_TYPE
static final String SHARDS_PREFERENCE_REPLICA_TYPE
Replica type sort rule- See Also:
- Constant Field Values
-
SHARDS_PREFERENCE_REPLICA_LOCATION
static final String SHARDS_PREFERENCE_REPLICA_LOCATION
Replica location sort rule- See Also:
- Constant Field Values
-
REPLICA_LOCAL
static final String REPLICA_LOCAL
Value denoting local replicas- See Also:
- Constant Field Values
-
_ROUTE_
static final String _ROUTE_
- See Also:
- Constant Field Values
-
DISTRIB_SINGLE_PASS
static final String DISTRIB_SINGLE_PASS
Force a single-pass distributed query? (true/false)- See Also:
- Constant Field Values
-
REQUIRE_ZK_CONNECTED
static final String REQUIRE_ZK_CONNECTED
Throw an error from search requests when the "shards.tolerant" param has this value and ZooKeeper is not connected.
-
-
Method Detail
-
getShardsTolerantAsBool
static boolean getShardsTolerantAsBool(SolrParams params)
Parse the "shards.tolerant" param fromparams
as a boolean; accepts "requireZkConnected" as a valid value indicatingfalse
. By default, returnsfalse
when "shards.tolerant" is not set inparams
.
-
-