query_fetch: Initialize a document fetch query

Description Usage Arguments

View source: R/query_fetch.R

Description

Initialize a document fetch query

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
query_fetch(
  con,
  index = NULL,
  path = NULL,
  size = 10000,
  time_scroll = "5m",
  max = 0,
  format = c("list", "json"),
  check_fields = TRUE
)

Arguments

con

an es_connect() object

index

the name of the index to query (if not specified, will fall back on 'primary_index' provided to es_connect())

path

an optional directory to write documents to as they are fetched

size

the number of documents to fetch in each batch (max is 10000)

time_scroll

specify how long a consistent view of the index should be maintained for scrolled search, e.g. "1m"

max

maximum number of documents to fetch

format

format of returned output - either "list" or "json"

check_fields

should field names be checked when the query is augmented?


hafen/elasticquery documentation built on May 17, 2021, 3:01 p.m.