diff --git a/README.md b/README.md index 026a53a..9e31d35 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # uptasticsearch -[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version-last-release/uptasticsearch)](http://cran.r-project.org/package=uptasticsearch) [![CRAN\_Download\_Badge](http://cranlogs.r-pkg.org/badges/grand-total/uptasticsearch)](http://cran.rstudio.com/web/packages/uptasticsearch/index.html) +[![CRAN\_Status\_Badge](https://www.r-pkg.org/badges/version-last-release/uptasticsearch)](https://cran.r-project.org/package=uptasticsearch) [![CRAN\_Download\_Badge](https://cranlogs.r-pkg.org/badges/grand-total/uptasticsearch)](https://cran.r-project.org/package=uptasticsearch) ## Introduction diff --git a/r-pkg/DESCRIPTION b/r-pkg/DESCRIPTION index 7b95e3b..cc3d682 100644 --- a/r-pkg/DESCRIPTION +++ b/r-pkg/DESCRIPTION @@ -1,7 +1,7 @@ Package: uptasticsearch Type: Package Title: Get Data Frame Representations of 'Elasticsearch' Results -Version: 0.0.2.9999 +Version: 0.1.0.9999 Authors@R: c( person("James", "Lamb", email = "james.lamb@uptake.com", role = c("aut", "cre")), person("Nick", "Paras", email = "nick.paras@uptake.com", role = c("aut")), diff --git a/r-pkg/NEWS.md b/r-pkg/NEWS.md index 8423920..981e86e 100644 --- a/r-pkg/NEWS.md +++ b/r-pkg/NEWS.md @@ -2,6 +2,21 @@ ## Features +### Elasticsearch metadata +- `get_fields` returns a data.table with the names and types of all indexed fields across one or more indices + +### Routing Temporary File Writing +- `es_search` now accepts an `intermediates_dir` parameter, giving users control over the directory used for temporary I/O at query time + +## Bugfixes + +### Empty Results +- Added logic to short-circuit and return early with an informative message if a query matches 0 documents + +# uptasticsearch 0.0.2 + +## Features + ### Main function - `es_search` executes an ES query and gets a data.table diff --git a/r-pkg/README.md b/r-pkg/README.md index 0f51616..dd737e4 100644 --- a/r-pkg/README.md +++ b/r-pkg/README.md @@ -1,6 +1,6 @@ # uptasticsearch -[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version-last-release/uptasticsearch)](http://cran.r-project.org/package=uptasticsearch) [![CRAN\_Download\_Badge](http://cranlogs.r-pkg.org/badges/grand-total/uptasticsearch)](http://cran.rstudio.com/web/packages/uptasticsearch/index.html) +[![CRAN\_Status\_Badge](https://www.r-pkg.org/badges/version-last-release/uptasticsearch)](https://cran.r-project.org/package=uptasticsearch) [![CRAN\_Download\_Badge](https://cranlogs.r-pkg.org/badges/grand-total/uptasticsearch)](https://cran.r-project.org/package=uptasticsearch) ## Introduction diff --git a/r-pkg/_pkgdown.yml b/r-pkg/_pkgdown.yml index 197dc6c..013639c 100644 --- a/r-pkg/_pkgdown.yml +++ b/r-pkg/_pkgdown.yml @@ -11,6 +11,7 @@ reference: - starts_with("chomp_") - title: Utilities contents: + - get_fields - unpack_nested_data - parse_date_time - title: Exploratory functions diff --git a/r-pkg/cran-comments.md b/r-pkg/cran-comments.md index 93397c3..352afb1 100644 --- a/r-pkg/cran-comments.md +++ b/r-pkg/cran-comments.md @@ -26,4 +26,46 @@ ## v0.0.2 - Submission 3 - (July 18, 2017) ### CRAN Response -* No lingering issues. v0.0.2 released to CRAN! \ No newline at end of file +* No lingering issues. v0.0.2 released to CRAN! + +## v0.1.0 - Submission 1 - (August 28, 2017) + +### R CMD check results +* No issues + +### CRAN Response +* Need to use CRAN canonical form (http://cran.r-project.org/package=uptasticsearch) + +## v0.1.0 - Submission 2 - (August 28, 2017) + +### R CMD check results +* No issues + +### CRAN Response +* CRAN canonical form uses HTTPS (https://cran.r-project.org/package=uptasticsearch) + +## v0.1.0 - Submission 3 - (August 29, 2017) + +### R CMD check results +* No issues + +### CRAN Response +* CRAN URLs are still missing HTTPS (submitter error) + +## v0.1.0 - Submission 4 - (August 29, 2017) + +### R CMD check results +* No issues + +### CRAN Response +* Still missing HTTPS in CRAN URLs (we'd been editing the README at the repo root, not the one built with the package) +* Reviewers asked if examples in "\dontrun" could be run instead + +## v0.1.0 - Submission 5 - (August 29, 2017) + +### R CMD check results +* No issues + +### CRAN Response +* No lingering issues. v0.0.2 released to CRAN! + diff --git a/r-pkg/docs/authors.html b/r-pkg/docs/authors.html index 83e7568..1a9d919 100644 --- a/r-pkg/docs/authors.html +++ b/r-pkg/docs/authors.html @@ -99,12 +99,16 @@
Austin Dickey. Author.
+Michael Frasco. Contributor. +
+Weiwen Gu. Contributor.
Uptake Technologies Inc.. Copyright holder. +
Uptake Technologies Inc.. Copyright holder.
For a given Elasticsearch index, return the mapping from field name + to data type for all indexed fields.
+ + +get_fields(es_host, es_indices = "_all")+ +
es_host | +A string identifying an Elasticsearch host. This should be of
+the form |
+
---|---|
es_indices | +A character vector that contains the names of indices for
+which to get mappings. Default is |
+
A data.table containing four columns: index, type, field, and data_type
+ + +# NOT RUN { +# get the mapping for all indexed fields in the ticket_sales and customers indices +mappingDT <- retrieve_mapping(es_host = "http://es.custdb.mycompany.com:9200" + , es_indices = c("ticket_sales", "customers")) +# }+
Get the names and data types of the indexed fields in an index