Class CollectionAdminRequest.ReindexCollection
- java.lang.Object
-
- org.apache.solr.client.solrj.SolrRequest<T>
-
- org.apache.solr.client.solrj.request.CollectionAdminRequest<CollectionAdminResponse>
-
- org.apache.solr.client.solrj.request.CollectionAdminRequest.AsyncCollectionAdminRequest
-
- org.apache.solr.client.solrj.request.CollectionAdminRequest.AsyncCollectionSpecificAdminRequest
-
- org.apache.solr.client.solrj.request.CollectionAdminRequest.ReindexCollection
-
- All Implemented Interfaces:
Serializable
,V2RequestSupport
,MapSerializable
,MapWriter
,NavigableObject
- Enclosing class:
- CollectionAdminRequest<T extends CollectionAdminResponse>
public static class CollectionAdminRequest.ReindexCollection extends CollectionAdminRequest.AsyncCollectionSpecificAdminRequest
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.request.CollectionAdminRequest
CollectionAdminRequest.AddReplica, CollectionAdminRequest.AddReplicaProp, CollectionAdminRequest.AddRole, CollectionAdminRequest.AsyncCollectionAdminRequest, CollectionAdminRequest.AsyncCollectionSpecificAdminRequest, CollectionAdminRequest.AsyncShardSpecificAdminRequest, CollectionAdminRequest.Backup, CollectionAdminRequest.BalanceShardUnique, CollectionAdminRequest.ClusterProp, CollectionAdminRequest.ClusterStatus, CollectionAdminRequest.CollectionAdminRoleRequest, CollectionAdminRequest.CollectionProp, CollectionAdminRequest.ColStatus, CollectionAdminRequest.Create, CollectionAdminRequest.CreateAlias, CollectionAdminRequest.CreateCategoryRoutedAlias, CollectionAdminRequest.CreateShard, CollectionAdminRequest.CreateSnapshot, CollectionAdminRequest.CreateTimeRoutedAlias, CollectionAdminRequest.Delete, CollectionAdminRequest.DeleteAlias, CollectionAdminRequest.DeleteNode, CollectionAdminRequest.DeleteReplica, CollectionAdminRequest.DeleteReplicaProp, CollectionAdminRequest.DeleteShard, CollectionAdminRequest.DeleteSnapshot, CollectionAdminRequest.DeleteStatus, CollectionAdminRequest.ForceLeader, CollectionAdminRequest.List, CollectionAdminRequest.ListAliases, CollectionAdminRequest.ListSnapshots, CollectionAdminRequest.Migrate, CollectionAdminRequest.MigrateClusterState, CollectionAdminRequest.Modify, CollectionAdminRequest.MoveReplica, CollectionAdminRequest.OverseerStatus, CollectionAdminRequest.RebalanceLeaders, CollectionAdminRequest.ReindexCollection, CollectionAdminRequest.Reload, CollectionAdminRequest.RemoveRole, CollectionAdminRequest.Rename, CollectionAdminRequest.ReplaceNode, CollectionAdminRequest.RequestStatus, CollectionAdminRequest.RequestStatusResponse, CollectionAdminRequest.Restore, CollectionAdminRequest.SetAliasProperty, CollectionAdminRequest.ShardSpecificAdminRequest, CollectionAdminRequest.SplitShard, CollectionAdminRequest.UtilizeNode
-
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequest
SolrRequest.METHOD
-
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter
-
-
Field Summary
-
Fields inherited from class org.apache.solr.client.solrj.request.CollectionAdminRequest.AsyncCollectionSpecificAdminRequest
collection
-
Fields inherited from class org.apache.solr.client.solrj.request.CollectionAdminRequest.AsyncCollectionAdminRequest
asyncId, waitForFinalState
-
Fields inherited from class org.apache.solr.client.solrj.request.CollectionAdminRequest
action, MODIFIABLE_COLLECTION_PROPERTIES, PROPERTY_PREFIX
-
Fields inherited from class org.apache.solr.client.solrj.SolrRequest
SUPPORTED_METHODS, useBinaryV2, usev2
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SolrParams
getParams()
CollectionAdminRequest.ReindexCollection
setBatchSize(int batchSize)
Copy documents in batches of this size.CollectionAdminRequest.ReindexCollection
setCollectionParam(String key, Object value)
Set other supported collection CREATE parameters.CollectionAdminRequest.ReindexCollection
setCommand(String command)
Set optional command (eg.CollectionAdminRequest.ReindexCollection
setConfigName(String configName)
Config name for the target collection.CollectionAdminRequest.ReindexCollection
setFields(String fields)
Fields to reindex (the same syntax asCommonParams.FL
), default is '*'.CollectionAdminRequest.ReindexCollection
setQuery(String query)
Query matching the documents to reindex (default is '*:*').CollectionAdminRequest.ReindexCollection
setRemoveSource(boolean removeSource)
Remove source collection after success.CollectionAdminRequest.ReindexCollection
setTarget(String target)
Target collection name (null if the same).-
Methods inherited from class org.apache.solr.client.solrj.request.CollectionAdminRequest.AsyncCollectionSpecificAdminRequest
getCollectionName
-
Methods inherited from class org.apache.solr.client.solrj.request.CollectionAdminRequest.AsyncCollectionAdminRequest
createResponse, getAsyncId, processAndWait, processAndWait, processAsync, processAsync, setAsyncId, setWaitForFinalState
-
Methods inherited from class org.apache.solr.client.solrj.request.CollectionAdminRequest
addProperties, addReplicaByRouteKey, addReplicaProperty, addReplicaToShard, addReplicaToShard, addRole, backupCollection, balanceReplicaProperty, collectionStatus, createAlias, createCategoryRoutedAlias, createCollection, createCollection, createCollection, createCollectionWithImplicitRouter, createCollectionWithImplicitRouter, createShard, createTimeRoutedAlias, deleteAlias, deleteAllAsyncIds, deleteAsyncId, deleteCollection, deleteNode, deleteReplica, deleteReplica, deleteReplicaProperty, deleteReplicasFromAllShards, deleteReplicasFromShard, deleteShard, forceLeaderElection, getClusterStatus, getOverseerStatus, getV2Request, listCollections, migrateCollectionFormat, migrateData, modifyCollection, rebalanceLeaders, reindexCollection, reloadCollection, removeRole, renameCollection, requestStatus, restoreCollection, setAliasProperty, setClusterProperty, setCollectionProperty, splitShard, toString, waitForAsyncRequest, writeMap
-
Methods inherited from class org.apache.solr.client.solrj.SolrRequest
getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getMethod, getPath, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr
-
-
-
-
Method Detail
-
setTarget
public CollectionAdminRequest.ReindexCollection setTarget(String target)
Target collection name (null if the same).
-
setCommand
public CollectionAdminRequest.ReindexCollection setCommand(String command)
Set optional command (eg. abort, status).
-
setQuery
public CollectionAdminRequest.ReindexCollection setQuery(String query)
Query matching the documents to reindex (default is '*:*').
-
setFields
public CollectionAdminRequest.ReindexCollection setFields(String fields)
Fields to reindex (the same syntax asCommonParams.FL
), default is '*'.
-
setRemoveSource
public CollectionAdminRequest.ReindexCollection setRemoveSource(boolean removeSource)
Remove source collection after success. Default is false.
-
setBatchSize
public CollectionAdminRequest.ReindexCollection setBatchSize(int batchSize)
Copy documents in batches of this size. Default is 100.
-
setConfigName
public CollectionAdminRequest.ReindexCollection setConfigName(String configName)
Config name for the target collection. Default is the same as source.
-
setCollectionParam
public CollectionAdminRequest.ReindexCollection setCollectionParam(String key, Object value)
Set other supported collection CREATE parameters.
-
getParams
public SolrParams getParams()
- Overrides:
getParams
in classCollectionAdminRequest.AsyncCollectionSpecificAdminRequest
-
-