describe: Explain a query

View source: R/describe.R

describeR Documentation

Explain a query

Description

Explain a query

Usage

describe(.data)

Arguments

.data

(list) input, using higher level interface

Examples

## Not run: 
elastic::connect()

shakespeare <- system.file("examples", "shakespeare_data.json", package = "elastic")
invisible(elastic::docs_bulk(shakespeare))
# index("shakespeare") %>% range( speech_number <= 5 ) %>% describe

index("shakespeare") %>%
   bool(must_not = list(term=list(speaker="KING HENRY IV"))) %>%
   describe

geoshape <- system.file("examples", "gbif_geoshape.json", package = "elastic")
invisible(elastic::docs_bulk(geoshape))
index("geoshape") %>%
   geoshape(field = "location", type = "envelope",
            coordinates = list(c(-30, 50), c(30, 0))) %>%
   describe()

## End(Not run)

ropensci/elasticdsl documentation built on May 18, 2022, 9:53 a.m.