11# ' Index API operations
22# '
3- # ' @rdname index-elastic
3+ # ' @rdname indices
44# ' @references
55# ' <https://www.elastic.co/guide/en/elasticsearch/reference/current/indices.html>
66# ' @author Scott Chamberlain <myrmecocystus@@gmail.com>
@@ -279,7 +279,7 @@ index_exists <- function(index, ...) {
279279}
280280
281281# ' @export
282- # ' @rdname index-elastic
282+ # ' @rdname indices
283283index_delete <- function (index , raw = FALSE , verbose = TRUE , ... ) {
284284 url <- paste0(make_url(es_get_auth()), " /" , esc(index ))
285285 out <- DELETE(url , make_up(), ... )
@@ -290,14 +290,14 @@ index_delete <- function(index, raw=FALSE, verbose=TRUE, ...) {
290290}
291291
292292# ' @export
293- # ' @rdname index-elastic
293+ # ' @rdname indices
294294index_create <- function (index = NULL , body = NULL , raw = FALSE , verbose = TRUE , ... ) {
295295 url <- make_url(es_get_auth())
296296 es_PUT(paste0(url , " /" , esc(index )), body = body , ... )
297297}
298298
299299# ' @export
300- # ' @rdname index-elastic
300+ # ' @rdname indices
301301index_recreate <- function (index = NULL , body = NULL , raw = FALSE , verbose = TRUE ,
302302 ... ) {
303303
@@ -310,19 +310,19 @@ index_recreate <- function(index=NULL, body=NULL, raw=FALSE, verbose=TRUE,
310310}
311311
312312# ' @export
313- # ' @rdname index-elastic
313+ # ' @rdname indices
314314index_close <- function (index , ... ) {
315315 close_open(index , " _close" , ... )
316316}
317317
318318# ' @export
319- # ' @rdname index-elastic
319+ # ' @rdname indices
320320index_open <- function (index , ... ) {
321321 close_open(index , " _open" , ... )
322322}
323323
324324# ' @export
325- # ' @rdname index-elastic
325+ # ' @rdname indices
326326index_stats <- function (index = NULL , metric = NULL , completion_fields = NULL ,
327327 fielddata_fields = NULL , fields = NULL , groups = NULL ,
328328 level = ' indices' , ... ) {
@@ -341,7 +341,7 @@ index_stats <- function(index=NULL, metric=NULL, completion_fields=NULL,
341341}
342342
343343# ' @export
344- # ' @rdname index-elastic
344+ # ' @rdname indices
345345index_settings <- function (index = " _all" , ... ) {
346346 url <- make_url(es_get_auth())
347347 url <- if (is.null(index ) || index == " _all" ) {
@@ -353,7 +353,7 @@ index_settings <- function(index="_all", ...) {
353353}
354354
355355# ' @export
356- # ' @rdname index-elastic
356+ # ' @rdname indices
357357index_settings_update <- function (index = NULL , body , ... ) {
358358 url <- make_url(es_get_auth())
359359 url <- if (is.null(index )) {
@@ -369,13 +369,13 @@ index_settings_update <- function(index=NULL, body, ...) {
369369}
370370
371371# ' @export
372- # ' @rdname index-elastic
372+ # ' @rdname indices
373373index_segments <- function (index = NULL , ... ) {
374374 es_GET_wrap1(index , " _segments" , ... )
375375}
376376
377377# ' @export
378- # ' @rdname index-elastic
378+ # ' @rdname indices
379379index_recovery <- function (index = NULL , detailed = FALSE , active_only = FALSE ,
380380 ... ) {
381381
@@ -386,7 +386,7 @@ index_recovery <- function(index = NULL, detailed = FALSE, active_only = FALSE,
386386}
387387
388388# ' @export
389- # ' @rdname index-elastic
389+ # ' @rdname indices
390390index_optimize <- function (index = NULL , max_num_segments = NULL ,
391391 only_expunge_deletes = FALSE ,
392392 flush = TRUE , wait_for_merge = TRUE , ... ) {
@@ -403,7 +403,7 @@ index_optimize <- function(index = NULL, max_num_segments = NULL,
403403}
404404
405405# ' @export
406- # ' @rdname index-elastic
406+ # ' @rdname indices
407407index_forcemerge <- function (index = NULL , max_num_segments = NULL ,
408408 only_expunge_deletes = FALSE , flush = TRUE , ... ) {
409409
@@ -419,7 +419,7 @@ index_forcemerge <- function(index = NULL, max_num_segments = NULL,
419419}
420420
421421# ' @export
422- # ' @rdname index-elastic
422+ # ' @rdname indices
423423index_upgrade <- function (index = NULL , wait_for_completion = FALSE , ... ) {
424424 stop_es_version(120 , " index_get" )
425425 if (es_ver() > = 500 ) {
@@ -431,7 +431,7 @@ https://www.elastic.co/guide/en/elasticsearch/reference/current/reindex-upgrade.
431431}
432432
433433# ' @export
434- # ' @rdname index-elastic
434+ # ' @rdname indices
435435index_analyze <- function (text = NULL , field = NULL , index = NULL , analyzer = NULL ,
436436 tokenizer = NULL , filters = NULL , char_filters = NULL ,
437437 body = list (), ... ) {
@@ -458,7 +458,7 @@ index_analyze <- function(text=NULL, field=NULL, index=NULL, analyzer=NULL,
458458}
459459
460460# ' @export
461- # ' @rdname index-elastic
461+ # ' @rdname indices
462462index_flush <- function (index = NULL , force = FALSE , full = FALSE ,
463463 wait_if_ongoing = FALSE , ... ) {
464464
@@ -474,7 +474,7 @@ index_flush <- function(index=NULL, force=FALSE, full=FALSE,
474474}
475475
476476# ' @export
477- # ' @rdname index-elastic
477+ # ' @rdname indices
478478index_clear_cache <- function (index = NULL , filter = FALSE , filter_keys = NULL ,
479479 fielddata = FALSE , query_cache = FALSE ,
480480 id_cache = FALSE , ... ) {
0 commit comments