# NOT RUN {
# connection setup
(x <- connect())
search_shards(x, index = "plos")
search_shards(x, index = c("plos","gbif"))
search_shards(x, index = "plos", preference='_primary')
search_shards(x, index = "plos", preference='_shards:2')
# curl options
search_shards(x, index = "plos", verbose = TRUE)
# }
Run the code above in your browser using DataLab