Package | Description |
---|---|
org.apache.solr.client.solrj.request |
Convenience classes for dealing with various types of Solr requests.
|
Modifier and Type | Method and Description |
---|---|
static CollectionAdminRequest.Create |
CollectionAdminRequest.createCollection(String collection,
int numShards,
int numReplicas)
Returns a SolrRequest for creating a collection using a default configSet
This requires that there is either a single configset configured in the cluster, or
that there is a configset with the same name as the collection
|
static CollectionAdminRequest.Create |
CollectionAdminRequest.createCollection(String collection,
String config,
Integer numShards,
Integer numNrtReplicas,
Integer numTlogReplicas,
Integer numPullReplicas)
Returns a SolrRequest for creating a collection
|
static CollectionAdminRequest.Create |
CollectionAdminRequest.createCollection(String collection,
String config,
int numShards,
int numReplicas)
Returns a SolrRequest for creating a collection
|
static CollectionAdminRequest.Create |
CollectionAdminRequest.createCollectionWithImplicitRouter(String collection,
String config,
String shards,
int numReplicas)
Returns a SolrRequest for creating a collection with the implicit router
|
static CollectionAdminRequest.Create |
CollectionAdminRequest.createCollectionWithImplicitRouter(String collection,
String config,
String shards,
int numNrtReplicas,
int numTlogReplicas,
int numPullReplicas)
Returns a SolrRequest for creating a collection with the implicit router and specific types of replicas
|
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setAlias(String alias) |
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setAutoAddReplicas(boolean autoAddReplicas) |
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setCreateNodeSet(String nodeSet) |
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setMaxShardsPerNode(Integer numShards) |
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setNrtReplicas(Integer nrtReplicas) |
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setPolicy(String policy) |
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setProperties(Map<String,String> properties) |
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setProperties(Properties properties) |
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setPullReplicas(Integer pullReplicas) |
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setReplicationFactor(Integer repl) |
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setRouterField(String routerField) |
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setRouterName(String routerName) |
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setRule(String... s) |
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setShards(String shards)
Provide the name of the shards to be created, separated by commas
Shard names must consist entirely of periods, underscores, hyphens, and alphanumerics.
|
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setSnitch(String... s) |
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setStateFormat(Integer stateFormat) |
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setTlogReplicas(Integer tlogReplicas) |
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.setWithCollection(String withCollection) |
CollectionAdminRequest.Create |
CollectionAdminRequest.Create.withProperty(String key,
String value) |
Modifier and Type | Method and Description |
---|---|
static CollectionAdminRequest.CreateCategoryRoutedAlias |
CollectionAdminRequest.createCategoryRoutedAlias(String aliasName,
String routerField,
int maxCardinality,
CollectionAdminRequest.Create createCollTemplate)
Returns a SolrRequest to create a category routed alias.
|
static CollectionAdminRequest.CreateTimeRoutedAlias |
CollectionAdminRequest.createTimeRoutedAlias(String aliasName,
String start,
String interval,
String routerField,
CollectionAdminRequest.Create createCollTemplate)
Returns a SolrRequest to create a time routed alias.
|
Constructor and Description |
---|
CreateCategoryRoutedAlias(String aliasName,
String routerField,
int maxCardinality,
CollectionAdminRequest.Create createCollTemplate) |
CreateTimeRoutedAlias(String aliasName,
String routerField,
String start,
String interval,
CollectionAdminRequest.Create createCollTemplate) |
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.