Documentation
¶
Index ¶
- func CallCollectionsApi(cloud string, namespace string, urlParams url.Values, response interface{}) (err error)
- func CheckForCollectionsApiError(action string, header SolrResponseHeader) (hasError bool, err error)
- func CollectionsAPIError(action string, responseStatus int) error
- type APIError
- type SolrAsyncResponse
- type SolrAsyncStatus
- type SolrClusterStatus
- type SolrClusterStatusResponse
- type SolrCollectionRouter
- type SolrCollectionStatus
- type SolrOverseerStatusResponse
- type SolrReplicaState
- type SolrReplicaStatus
- type SolrReplicaType
- type SolrResponseHeader
- type SolrShardState
- type SolrShardStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallCollectionsApi ¶
func CheckForCollectionsApiError ¶
func CheckForCollectionsApiError(action string, header SolrResponseHeader) (hasError bool, err error)
func CollectionsAPIError ¶
Types ¶
type SolrAsyncResponse ¶
type SolrAsyncResponse struct {
ResponseHeader SolrResponseHeader `json:"responseHeader"`
// +optional
RequestId string `json:"requestId"`
// +optional
Status SolrAsyncStatus `json:"status"`
}
type SolrAsyncStatus ¶
type SolrAsyncStatus struct {
// Possible states can be found here: https://github.com/apache/lucene-solr/blob/1d85cd783863f75cea133fb9c452302214165a4d/solr/solrj/src/java/org/apache/solr/client/solrj/response/RequestStatusState.java
AsyncState string `json:"state"`
Message string `json:"msg"`
}
type SolrClusterStatus ¶
type SolrClusterStatusResponse ¶
type SolrClusterStatusResponse struct {
ResponseHeader SolrResponseHeader `json:"responseHeader"`
// +optional
ClusterStatus SolrClusterStatus `json:"cluster"`
}
type SolrCollectionRouter ¶
type SolrCollectionRouter struct {
Name solr.CollectionRouterName `json:"name"`
}
type SolrCollectionStatus ¶
type SolrCollectionStatus struct {
// +optional
Shards map[string]SolrShardStatus `json:"shards"`
// +optional
ConfigName string `json:"configName"`
// +optional
ZnodeVersion string `json:"znodeVersion"`
// +optional
AutoAddReplicas string `json:"autoAddReplicas"`
// +optional
NrtReplicas int `json:"nrtReplicas"`
// +optional
TLogReplicas int `json:"tlogReplicas"`
// +optional
PullReplicas int `json:"pullReplicas"`
// +optional
MaxShardsPerNode string `json:"maxShardsPerNode"`
// +optional
ReplicationFactor string `json:"replicationFactor"`
// +optional
Router SolrCollectionRouter `json:"router"`
}
type SolrOverseerStatusResponse ¶
type SolrOverseerStatusResponse struct {
ResponseHeader SolrResponseHeader `json:"responseHeader"`
// +optional
Leader string `json:"leader"`
// +optional
QueueSize int `json:"overseer_queue_size"`
// +optional
WorkQueueSize int `json:"overseer_work_queue_size"`
// +optional
CollectionQueueSize int `json:"overseer_collection_queue_size"`
}
type SolrReplicaState ¶
type SolrReplicaState string
const ( ReplicaActive SolrReplicaState = "active" ReplicaDown SolrReplicaState = "down" ReplicaRecovering SolrReplicaState = "recovering" ReplicaRecoveryFailed SolrReplicaState = "recovery_failed" )
type SolrReplicaStatus ¶
type SolrReplicaStatus struct {
State SolrReplicaState `json:"state"`
Core string `json:"core"`
NodeName string `json:"node_name"`
BaseUrl string `json:"base_url"`
Leader bool `json:"leader,string"`
// +optional
Type SolrReplicaType `json:"type"`
}
type SolrReplicaType ¶
type SolrReplicaType string
const ( NRT SolrReplicaType = "NRT" TLOG SolrReplicaType = "TLOG" PULL SolrReplicaType = "PULL" )
type SolrResponseHeader ¶
type SolrShardState ¶
type SolrShardState string
const ( ShardActive SolrShardState = "active" ShardDown SolrShardState = "down" )
type SolrShardStatus ¶
type SolrShardStatus struct {
// +optional
Replicas map[string]SolrReplicaStatus `json:"replicas"`
// +optional
Range string `json:"range"`
// +optional
State SolrShardState `json:"state"`
}
Click to show internal directories.
Click to hide internal directories.