search_shards: Search shards.

Description Usage Arguments References Examples

View source: R/search_shards.R

Description

Search shards.

Usage

1
2

Arguments

index

One or more indeces

raw

If TRUE (default), data is parsed to list. If FALSE, then raw JSON

routing

A character vector of routing values to take into account when determining which shards a request would be executed against.

preference

Controls a preference of which shard replicas to execute the search request on. By default, the operation is randomized between the shard replicas. See preference for a list of all acceptable values.

local

(logical) Whether to read the cluster state locally in order to determine where shards are allocated instead of using the Master node's cluster state.

...

Curl args passed on to httr::GET()

References

https://www.elastic.co/guide/en/elasticsearch/reference/current/search-shards.html

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
search_shards(index = "plos")
search_shards(index = c("plos","gbif"))
search_shards(index = "plos", preference='_primary')
search_shards(index = "plos", preference='_shards:2')

library('httr')
search_shards(index = "plos", config=verbose())

## End(Not run)

ropensci/elastic documentation built on Dec. 17, 2018, 11:08 a.m.