Learn R Programming

elastic (version 1.2.2)

Database Interface to 'Elasticsearch' and 'OpenSearch'

Description

Connect to 'Elasticsearch' and 'OpenSearch', 'NoSQL' databases built on the 'Java' Virtual Machine and using the 'Apache' 'Lucene' library. Interacts with the 'Elasticsearch' 'HTTP' API' () and the 'OpenSearch' 'HTTP' 'API' (). Includes functions for setting connection details to 'Elasticsearch' and 'OpenSearch' instances, loading bulk data, searching for documents with both 'HTTP' query variables and 'JSON' based body requests. In addition, 'elastic' provides functions for interacting with APIs for 'indices', documents, nodes, clusters, an interface to the cat API, and more.

Copy Link

Version

Install

install.packages('elastic')

Monthly Downloads

4,339

Version

1.2.2

License

MIT + file LICENSE

Maintainer

Ralf Herold

Last Published

January 25th, 2026

Functions in elastic (1.2.2)

connect

Set connection details to an Elasticsearch engine.
count

Get counts of the number of records per index.
Search_uri

Full text search of Elasticsearch with URI search
docs_bulk_create

Use the bulk API to create documents
cat

Use the cat Elasticsearch api.
cluster

Elasticsearch cluster endpoints
docs_bulk

Use the bulk API to create, index, update, or delete documents.
alias

Elasticsearch alias APIs
Search

Full text search of Elasticsearch
Search_template

Search or validate templates
docs_delete_by_query

Delete documents by query
docs_bulk_delete

Use the bulk API to delete documents
docs_bulk_prep

Use the bulk API to prepare bulk format data
docs_get

Get documents
docs_delete

Delete a document
docs_create

Create a document
docs_bulk_index

Use the bulk API to index documents
docs_bulk_update

Use the bulk API to update documents
docs_mget

Get multiple documents via the multiple get API
docs_update

Update a document
docs_update_by_query

Update documents by query
es_parse

Parse raw data from es_get, es_mget, or es_search.
elastic

elastic
fielddata

fielddata
elastic-defunct

Defunct functions in elastic
field_caps

Field capabilities
index_status

This function is defunct
explain

Explain a search query.
field_stats

Search field statistics
mapping

Mapping management
mlt

This function is defunct
mapping_delete

Mapping delete
msearch

Multi-search
ingest

Ingest API operations
info

This function is defunct
index_template

Index templates
indices

Index API operations
nodes_shutdown

This function is defunct
documents

Elasticsearch documents functions.
mtermvectors

Multi Termvectors
searchapis

Overview of search functions
reindex

Reindex
scroll

Scroll search function
tasks

Elasticsearch tasks endpoints
validate

Validate a search
units-time

Time units
units-distance

Distance units
type_remover

Utility function to remove 'type' from bulk load files
nodes

Elasticsearch nodes endpoints.
percolate

Percolater
ping

Ping an Elasticsearch server.
preference

Preferences.
search_body

Full text search of Elasticsearch - body requests.
search_shards

Search shards
tokenizer_set

Tokenizer operations
termvectors

Termvectors