Database Interface to 'Elasticsearch' and 'OpenSearch'
Overview
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' (https://www.elastic.co/elasticsearch/) and the 'OpenSearch' 'HTTP' 'API' (https://opensearch.org/). 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.
- new maintainer
- fixed minor issues of some functions for recent OpenSearch and Elasticsearch versions
- fixed some tests and CI testing (Elasticsearch 8 and 9, OpenSearch 2 and 3)
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: elastic/tests/testthat/test-docs_bulk_prep.R (.Names: 2) '.Names' should be changed to 'names'.
- NOTE8 OK, 5 NOTENow
- NOTE11 OK, 2 NOTE2026-07-16
- OK14 OK2026-03-10
Documentation
Documentation signals are not tracked yet for this package.
Downloads
Repository
13 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/rfhb/elastic on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-01-26
pkgdown site last built 2026-01-26
Show all practicesHide 2 practices
Dependencies
Installing elastic adds 12 packages (8 with compiled code, 5.7 MB of source tarballs). Heaviest: Rcpp 1.8 MB, jsonlite 1.0 MB, rlang 766 KB.
Code & Tests
People & History
Previously maintained by Scott Chamberlain (0.3.0 to 1.2.0).
- RR 4.6.0 released · 2026-04-24
- unarchivedReturned to CRAN2026-01-25
- 1.2.2Latest
- archivedRemoved from CRAN2026-01-14the maintainer's request
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 1.2.02021-03-16 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.1.0
- RR 3.6.0 released · 2019-04-26
- 1.0.02019-04-11 · diff ↗ ·
removed 1 export
connectionadded 12 exports
alias_rename, docs_bulk_create, docs_bulk_delete, docs_bulk_index, docs_delete_by_query, docs_update_by_query, pipeline_attachment, pipeline_create, pipeline_delete, pipeline_get, pipeline_simulate, type_remover - 0.8.4
- RR 3.5.0 released · 2018-04-23
Show 14 earlier eventsHide 14 earlier events
- 0.8.02017-09-14 · diff ↗ ·
added 9 exports
field_caps, index_forcemerge, index_template_delete, index_template_exists, index_template_get, index_template_put, reindex, tasks, tasks_cancel - RR 3.4.0 released · 2017-04-21
- 0.7.8
- 0.7.62016-08-25 · diff ↗
- 0.7.42016-08-18 · diff ↗ ·
added 5 exports
Search_template, Search_template_delete, Search_template_get, Search_template_register, Search_template_render - 0.7.22016-08-03 · diff ↗
- 0.7.0
- RR 3.3.0 released · 2016-05-03
- 0.6.02016-01-07 · diff ↗ ·
added 10 exports
cat_nodeattrs, field_stats, index_recreate, msearch, percolate_count, percolate_delete, percolate_list, percolate_match, percolate_register, validate - 0.5.0
- 0.4.0
- RR 3.2.0 released · 2015-04-16
- 0.3.02015-01-29
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2015-01-29
- Total releases
- 15 / 11 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 1.2 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("elastic")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.