Reallocates a list of shards to specified destination nodes and returns an acknowledgment from Elasticsearch.
Reallocates a list of shards to specified destination nodes and returns an acknowledgment from Elasticsearch. Maps to /_cluster/reroute.
Sequence of RerouteOps containing shard name and destination node.
EsResult of acknowledgment from ES.
Submits the given source for analysis using an Elasticsearch Analyzer and returns the response.
Submits the given source for analysis using an Elasticsearch Analyzer and returns the response.
String source to analyze.
EsResult of com.workday.esclient.AnalyzeResponse
Submits the given source for analysis using an Elasticsearch Analyzer, defautlting to the standard analyzer.
Submits the given source for analysis using an Elasticsearch Analyzer, defautlting to the standard analyzer.
String source to analyze.
String ES index name.
String name of ES Analyzer to use.
EsResult of com.workday.esclient.AnalyzeResponse
Returns all currently available nodes in the Elasticsearch cluster.
Returns all currently available nodes in the Elasticsearch cluster. Does not include downed nodes. Maps to /_cat/nodes
EsResult of sequence of com.workday.esclient.actions.NodeInfo.
Returns a Cat action for indices.
Returns a Cat action for indices.
Cat action.
Builds a Cat action for shards.
Builds a Cat action for shards.
If specified, only shards in that index are returned. If not specified, all shards are returned.
Parses a given Elasticsearch action sequence and executes the actions.
Parses a given Elasticsearch action sequence and executes the actions.
Sequence of ES update, index, and delete actions to perform.
EsResult of com.workday.esclient.BulkResponse
Attempts a bulk sequence of Elasticsearch actions and retries on failure up to a given depth of retries.
Attempts a bulk sequence of Elasticsearch actions and retries on failure up to a given depth of retries.
Sequence of action to attempt.
Int recursion depth limit. Defaults to 1. com.workday.esclient.EsIndexingDocs.RetriesLimit is set to 5.
EsResult of com.workday.esclient.BulkResponse
Returns a map of Elasticsearch alias info.
Returns a map of Elasticsearch alias info.
EsResult wrapping a map of AliasInfo.
Cats all Elasticsearch alias info and returns an EsResult wrapping alias information.
Cats all Elasticsearch alias info and returns an EsResult wrapping alias information.
EsResult wrapping a sequence of AliasInfo objects.
Gets the index status for all Elasticsearch indices.
Gets the index status for all Elasticsearch indices. Maps to /_cat/indices
EsResult of sequence of com.workday.esclient.actions.IndexInfo
Gets the status for the given Elasticsearch index.
Gets the status for the given Elasticsearch index.
String ES index name.
EsResult of sequence of com.workday.esclient.actions.IndexInfo
Gets the basic memory and disk stats for all Elasticsearch nodes.
Gets the basic memory and disk stats for all Elasticsearch nodes. Memory stats -> used heap percentage; Disk stats -> total and available byte counts.
EsResult of com.workday.esclient.AllNodesStat
Cats shard information from Elasticsearch.
Cats shard information from Elasticsearch. Includes unassigned shards. Maps to /_cat/shards
String ES index name. Defaults to empty string.
EsResult of sequence of com.workday.esclient.actions.ShardInfo.
Clears Elasticsearch cache keys.
Clears Elasticsearch cache keys. https://www.elastic.co/guide/en/elasticsearch/reference/1.7/indices-clearcache.html https://www.elastic.co/guide/en/elasticsearch/reference/1.7/query-dsl-terms-filter.html
Sequence of cache keys to clear.
EsResult of com.workday.esclient.ClearCacheResponse
Closes an Elasticsearch index and returns an EsResult acknowledgment.
Closes an Elasticsearch index and returns an EsResult acknowledgment. Closed indices have very little overhead on the cluster and are blocked from read/write operations.
String index to close in ES.
EsResult wrapping an ES acknowledgment.
Returns an Elasticsearch cluster health response.
Returns an Elasticsearch cluster health response.
EsResult wrapping the cluster health response from ES.
Gets all current Elasticsearch cluster settings.
Gets all current Elasticsearch cluster settings. Maps to /_cluster/settings.
EsResult of com.workday.esclient.ClusterSettingsResponse
Gets the current state of the Elasticsearch cluster.
Gets the current state of the Elasticsearch cluster. Maps to /_cluster/state.
Sequence of indices to filter cluster state response with. Defaults to Nil.
Boolean whether to include routing table in the cluster state response. Defaults to false.
EsResult of com.workday.esclient.ClusterStateResponse
Gets the count of documents in a given index (or alias) with optional filtering by type.
Gets the count of documents in a given index (or alias) with optional filtering by type.
String index/alias name to get from.
String optional ES type name (aka sid).
EsResult wrapping an integer count from ES.
Creates aliases for given indices in Elasticsearch.
Creates aliases for given indices in Elasticsearch.
Sequence of aliases including alias names and indices to map to.
EsResult wrapping an ES acknowledgment.
Creates an Elasticsearch index and returns an EsResult acknowledgment.
Creates an Elasticsearch index and returns an EsResult acknowledgment.
String index to create in ES.
Optional map of settings for the index.
EsResult wrapping an ES acknowledgment.
Creates a scrolled search and returns the Jest response.
Creates a scrolled search and returns the Jest response.
String index to search on
String type name to search
String query to search on
String params for search query
EsResult of Elasticsearch scan and scroll response
Does a scan and scroll search and returns an iterator over the results.
Does a scan and scroll search and returns an iterator over the results. (https://www.elastic.co/guide/en/elasticsearch/guide/current/scan-scroll.html)
String index to search
String index type
String query to perform
Map[String,Any] query parameters to include; defaults to empty Map
Iterator over EsResults of SearchHits
Returns a buildable search action for us with a Jest client.
Returns a buildable search action for us with a Jest client.
String index to search from.
String optional ES type name.
String query content.
Optional map of additional search parameters.
buildable search action object.
Deletes aliases from Elasticsearch.
Deletes aliases from Elasticsearch.
Sequence of aliases including alias names and indices to map to.
EsResult wrapping an ES acknowledgment.
Deletes Elasticsearch documents that match a given query string.
Deletes Elasticsearch documents that match a given query string.
String ES index name.
Optional string to query ES. Defaults to None.
EsResult of com.workday.esclient.DeleteByQueryResponse
Deletes an Elasticsearch index and returns an EsResult acknowledgment.
Deletes an Elasticsearch index and returns an EsResult acknowledgment.
String index to delete from ES.
EsResult wrapping an ES acknowledgment.
Flushes an Elasticsearch index.
Makes a get request to Elasticsearch for the given id and index.
Makes a get request to Elasticsearch for the given id and index.
String index to get from.
String id of document to get.
EsResult wrapping the response from ES.
Gets Elasticsearch aliases by index and return a sequence of AliasInfo.
Gets Elasticsearch aliases by index and return a sequence of AliasInfo.
String index to get aliases for.
EsResult wrapping the aliases.
Gets Elasticsearch alias info from a sequence of alias names.
Gets Elasticsearch alias info from a sequence of alias names.
Sequence of ES alias names.
EsResult wrapping the aliases.
Gets all of the mappings for an Elasticsearch index.
Gets all of the mappings for an Elasticsearch index.
String index to get mappings from.
String ES type name.
EsResult wrapping the index mappings.
Gets all of the mappings for an Elasticsearch index.
Gets all of the mappings for an Elasticsearch index. TODO: create variants for specific fields.
String index to get mappings from.
EsResult wrapping the index mappings.
Gets all of the mapping for a sequence of indices in Elasticsearch.
Gets all of the mapping for a sequence of indices in Elasticsearch.
Sequence of ES indices.
Sequence of ES type names.
EsResult wrapping a map of indices and their mappings.
Gets the scrolled search result using a scroll ID
Gets the scrolled search result using a scroll ID
String provided scroll ID
EsResult of Elasticsearch scan and scroll response
Gets the count of search hits for a given query and index.
Gets the count of search hits for a given query and index.
String index to get from.
String query content.
Int count of hits for given query.
Gets com.workday.esclient.EsIndexingDocs.SleepTimeToHandleBackPressureMs
Returns successful EsResult[T] or error response on JSON parsing/mapping failure.
Returns successful EsResult[T] or error response on JSON parsing/mapping failure.
we need J here to allow things like jest's CountResult
- multiGet returns a GetResponse with an error field instead of a source, so we should report that normally
EsResult[T] either EsResponse[T] or an error message type
Handles the Jest result from an ES request and returns a JSON object.
Handles the Jest result from an ES request and returns a JSON object.
Jest SearchResult from ES.
EsResult wrapping the handled response from ES.
Indexes a given doc to an Elasticsearch index under the given id.
Indexes a given doc to an Elasticsearch index under the given id.
String ES index name.
String ES type name.
String id to index document under.
String doc to index.
EsResult of com.workday.esclient.UpdateResponse
Modifies aliases in Elasticsearch and returns an acknowledgment.
Modifies aliases in Elasticsearch and returns an acknowledgment.
Sequences of aliases to add to ES.
Sequences of aliases to remove from ES>
EsResult wrapping an ES acknowledgment.
Makes a multi-get request to Elasticsearch for the given index and ids.
Makes a multi-get request to Elasticsearch for the given index and ids.
String index to get from.
String ES type name.
Sequence of ids of documents to get.
Optional map of additional get parameters.
EsResult wrapping the response from ES.
Makes a Multi Get request with the "_source" field provided as a parameter.
Makes a Multi Get request with the "_source" field provided as a parameter.
String index to get from.
String ES type name.
Sequence of ids of documents to get.
String "_source" field to specify which documents to return source for.
EsResult wrapping the response from ES.
Creates a repository with the specified settings and returns an Elasticsearch acknowledgment.
Creates a repository with the specified settings and returns an Elasticsearch acknowledgment. Settings are the payload as defined here: https://www.elastic.co/guide/en/elasticsearch/reference/1.4/modules-snapshots.html#_repositories
String name of target repository
String of repository settings
EsResult containing an Elasticsearch acknowledgment
Deletes a repository and returns an Elasticsearch acknowledgment.
Deletes a repository and returns an Elasticsearch acknowledgment.
String name of target repository
EsResult containing an Elasticsearch acknowledgment
Returns the list of all repositories defined in the ES cluster.
Returns the list of all repositories defined in the ES cluster.
EsResult containing a sequence of repository definitions
Makes a more sophisticated query on Elasticsearch including ES type names and parameters.
Makes a more sophisticated query on Elasticsearch including ES type names and parameters.
String ES index to query.
String ES type name.
String query content.
Map of params to include in ES request.
EsResult wrapping the response from ES.
Makes a basic query on Elasticsearch and returns an EsResult of the response.
Makes a basic query on Elasticsearch and returns an EsResult of the response.
String ES index to query.
String query content.
EsResult wrapping the response from ES.
Returns a snapshot of a set of indices.
Returns a snapshot of a set of indices.
String name of target repository
String name of snapshot
Sequence of String indices
Boolean whether to wait for snapshot response; Defaults to false
EsResult of snapshot or accepted response
Deletes a snapshot from given repository and returns acknowledgment.
Deletes a snapshot from given repository and returns acknowledgment.
String name of target repository
String name of snapshot
EsResult containing an Elasticsearch acknowledgment
Returns list of all snapshots defined for a given repository.
Returns list of all snapshots defined for a given repository. Maps Elasticsearch response JSON objects to a sequence of JSON objects of snapshots and their indices then wraps this sequence in a case class.
String name of target repository
EsResult containing an list of snapshots as com.fasterxml.jackson.databind.JsonNode
Restores from a snapshot and returns an accepted response from Elasticsearch.
Restores from a snapshot and returns an accepted response from Elasticsearch. Repository must be closed or this will fail.
String name of target repository
String name of snapshot
Boolean whether to wait for snapshot response; Defaults to false
EsResult containing an Elasticsearch accepted response
Returns com.workday.esclient.EsResult[T] from JSON Jest response.
Returns com.workday.esclient.EsResult[T] from JSON Jest response.
implicit manifest
Jest response to be handled
Boolean value whether to parse error responses
EsResult[T]
Performs a ScanAndScroll search, combines all paged results into an iterator and aggregates each result in the iterator into a single EsResult[EsSearchResponse].
Performs a ScanAndScroll search, combines all paged results into an iterator and aggregates each result in the iterator into a single EsResult[EsSearchResponse].
String index to search
String index type
String query to perform
Int size of each scan and scroll response
EsResult[EsSearchResponse] of aggregate result from scan-and-scrolled results
Updates Elasticsearch cluster settings.
Updates Elasticsearch cluster settings. Maps to /_cluster/settings. If key is not present it will keep its value.
Map of transient settings to update. Will not survive a cluster restart.
Map of persistent settings to update. Persist across cluster restarts.
EsResult of com.workday.esclient.ClusterSettingsResponse
Returns the least healthy index in the given sequence of Elastichsearch indices.
Returns the least healthy index in the given sequence of Elastichsearch indices. Maps to /_cluster/health/index1,index2,... .
Sequence of ES index names.
String ES timeout. Defaults to com.workday.esclient.actions.IndexHealthAction.DEFAULT_TIMEOUT
Tuple of the least healthy index status and whether the request timed out.
Elasticsearch Scala Client