Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

Commit a5053c2

Browse files
maellesckott
authored andcommitted
name rd "indices"
1 parent c7b7a27 commit a5053c2

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

R/index.R

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
283283
index_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
294294
index_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
301301
index_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
314314
index_close <- function(index, ...) {
315315
close_open(index, "_close", ...)
316316
}
317317

318318
#' @export
319-
#' @rdname index-elastic
319+
#' @rdname indices
320320
index_open <- function(index, ...) {
321321
close_open(index, "_open", ...)
322322
}
323323

324324
#' @export
325-
#' @rdname index-elastic
325+
#' @rdname indices
326326
index_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
345345
index_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
357357
index_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
373373
index_segments <- function(index = NULL, ...) {
374374
es_GET_wrap1(index, "_segments", ...)
375375
}
376376

377377
#' @export
378-
#' @rdname index-elastic
378+
#' @rdname indices
379379
index_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
390390
index_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
407407
index_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
423423
index_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
435435
index_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
462462
index_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
478478
index_clear_cache <- function(index=NULL, filter=FALSE, filter_keys=NULL,
479479
fielddata=FALSE, query_cache=FALSE,
480480
id_cache=FALSE, ...) {
File renamed without changes.

0 commit comments

Comments
 (0)