es_parse: Parse raw data from es_get, es_mget, or es_search.

Description Usage Arguments Details

View source: R/parsers.r

Description

Parse raw data from es_get, es_mget, or es_search.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
es_parse(input, parsetype, verbose)

## S3 method for class 'es_GET'
es_parse(input, parsetype = "list", verbose = FALSE)

## S3 method for class 'index_delete'
es_parse(input, parsetype = "list", verbose = FALSE)

## S3 method for class 'bulk_make'
es_parse(input, parsetype = "list", verbose = FALSE)

## S3 method for class 'elastic_mget'
es_parse(input, parsetype = "list", verbose = FALSE)

## S3 method for class 'elastic_search'
es_parse(input, parsetype = "list", verbose = FALSE)

## S3 method for class 'elastic_status'
es_parse(input, parsetype = "list", verbose = FALSE)

## S3 method for class 'elastic_stats'
es_parse(input, parsetype = "list", verbose = FALSE)

## S3 method for class 'elastic_cluster_health'
es_parse(input, parsetype = "list", verbose = TRUE)

## S3 method for class 'elastic_cluster_health'
es_parse(input, parsetype = "list", verbose = TRUE)

## S3 method for class 'elastic_cluster_state'
es_parse(input, parsetype = "list", verbose = TRUE)

## S3 method for class 'elastic_cluster_settings'
es_parse(input, parsetype = "list", verbose = TRUE)

## S3 method for class 'elastic_cluster_stats'
es_parse(input, parsetype = "list", verbose = TRUE)

## S3 method for class 'elastic_cluster_pending_tasks'
es_parse(input, parsetype = "list", verbose = TRUE)

## S3 method for class 'elastic_nodes_stats'
es_parse(input, parsetype = "list", verbose = TRUE)

## S3 method for class 'elastic_nodes_info'
es_parse(input, parsetype = "list", verbose = TRUE)

Arguments

input

Output from solr_facet

parsetype

One of 'list' or 'df' (data.frame). Only list possible for now.

verbose

Print messages or not (default: FALSE).

Details

This is the parser used internally in es_get, es_mget, and es_search, but if you output raw data from es_* functions using raw=TRUE, then you can use this function to parse that data (a es_* S3 object) after the fact to a list of data.frame's for easier consumption.


elastic documentation built on March 17, 2021, 1:07 a.m.

Related to es_parse in elastic...