From 23891c0a57b191ac4e509092ea61976985c14a0b Mon Sep 17 00:00:00 2001 From: James Lamb Date: Mon, 28 Aug 2017 00:15:20 -0500 Subject: [PATCH 1/3] Release v0.2.0 --- r-pkg/DESCRIPTION | 2 +- r-pkg/NEWS.md | 15 ++ r-pkg/_pkgdown.yml | 1 + r-pkg/docs/authors.html | 6 +- r-pkg/docs/news/index.html | 36 +++++ r-pkg/docs/reference/chomp_hits.html | 4 +- r-pkg/docs/reference/get_fields.html | 152 +++++++++++++++++++ r-pkg/docs/reference/index.html | 8 +- r-pkg/docs/reference/unpack_nested_data.html | 4 +- 9 files changed, 221 insertions(+), 7 deletions(-) create mode 100644 r-pkg/docs/reference/get_fields.html diff --git a/r-pkg/DESCRIPTION b/r-pkg/DESCRIPTION index 7b95e3b..88f4948 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 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/_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/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 @@

Authors

Austin Dickey. Author.

+
  • +

    Michael Frasco. Contributor. +

    +
  • Weiwen Gu. Contributor.

  • -

    Uptake Technologies Inc.. Copyright holder. +

    Uptake Technologies Inc.. Copyright holder.

  • diff --git a/r-pkg/docs/news/index.html b/r-pkg/docs/news/index.html index ce73336..c893d28 100644 --- a/r-pkg/docs/news/index.html +++ b/r-pkg/docs/news/index.html @@ -94,6 +94,41 @@

    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

    @@ -140,6 +175,7 @@

    Contents

    diff --git a/r-pkg/docs/reference/chomp_hits.html b/r-pkg/docs/reference/chomp_hits.html index f334e4f..c1b3564 100644 --- a/r-pkg/docs/reference/chomp_hits.html +++ b/r-pkg/docs/reference/chomp_hits.html @@ -126,8 +126,8 @@

    Examp "film":"Avengers: Infinity War","pmt_amount":12.75}]}}}]' # Chomp into a data.table -sampleChompedDT <- chomp_hits(hits_json = result, keep_nested_data_cols = TRUE) -print(sampleChompedDT)

    #> timestamp cust_name details.cust_class details.location +sampleChompedDT <- chomp_hits(hits_json = result, keep_nested_data_cols = TRUE)
    #> INFO [2017-08-28 00:25:38] Keeping the following nested data columns. Consider using unpack_nested_data for one: +#> details.pastPurchases
    print(sampleChompedDT)
    #> timestamp cust_name details.cust_class details.location #> 1: 2017-01-01 Austin big_spender chicago #> 2: 2017-02-02 James peasant chicago #> 3: 2017-03-03 Nick critic cannes diff --git a/r-pkg/docs/reference/get_fields.html b/r-pkg/docs/reference/get_fields.html new file mode 100644 index 0000000..6cfa7f6 --- /dev/null +++ b/r-pkg/docs/reference/get_fields.html @@ -0,0 +1,152 @@ + + + + + + + + +Get the names and data types of the indexed fields in an index — get_fields • uptasticsearch + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + +
    + +
    +
    + + + +

    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")
    + +

    Arguments

    + + + + + + + + + + +
    es_host

    A string identifying an Elasticsearch host. This should be of +the form [transfer_protocol][hostname]:[port]. For example, +'http://myindex.thing.com:9200'.

    es_indices

    A character vector that contains the names of indices for +which to get mappings. Default is '_all', which means +get the mapping for all indices. Names of indices can be +treated as regular expressions.

    + +

    Value

    + +

    A data.table containing four columns: index, type, field, and data_type

    + + +

    Examples

    +
    # 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"))
    +# }
    +
    + +
    + +
    + + +
    +

    Site built with pkgdown.

    +
    + +
    +
    + + + diff --git a/r-pkg/docs/reference/index.html b/r-pkg/docs/reference/index.html index 4847929..8e617ba 100644 --- a/r-pkg/docs/reference/index.html +++ b/r-pkg/docs/reference/index.html @@ -85,7 +85,7 @@ @@ -139,6 +139,12 @@

    + + +

    get_fields

    + +

    Get the names and data types of the indexed fields in an index

    +

    unpack_nested_data

    diff --git a/r-pkg/docs/reference/unpack_nested_data.html b/r-pkg/docs/reference/unpack_nested_data.html index 63670ce..be5e124 100644 --- a/r-pkg/docs/reference/unpack_nested_data.html +++ b/r-pkg/docs/reference/unpack_nested_data.html @@ -128,8 +128,8 @@

    Examp "film":"Avengers: Infinity War","pmt_amount":12.75}]}}}]' # Chomp into a data.table -sampleChompedDT <- chomp_hits(hits_json = result, keep_nested_data_cols = TRUE) -print(sampleChompedDT)

    #> timestamp cust_name details.cust_class details.location +sampleChompedDT <- chomp_hits(hits_json = result, keep_nested_data_cols = TRUE)
    #> INFO [2017-08-28 00:25:39] Keeping the following nested data columns. Consider using unpack_nested_data for one: +#> details.pastPurchases
    print(sampleChompedDT)
    #> timestamp cust_name details.cust_class details.location #> 1: 2017-01-01 Austin big_spender chicago #> 2: 2017-02-02 James peasant chicago #> 3: 2017-03-03 Nick critic cannes From f867e30dba40503a2a9211a9795f4c99f2d88728 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Mon, 28 Aug 2017 17:11:46 -0500 Subject: [PATCH 2/3] Updated CRAN links in README to canonical form --- README.md | 2 +- r-pkg/README.md | 2 +- r-pkg/docs/index.html | 2 +- r-pkg/docs/reference/chomp_hits.html | 2 +- r-pkg/docs/reference/unpack_nested_data.html | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 026a53a..dde877b 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](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.r-project.org/package=uptasticsearch) ## Introduction diff --git a/r-pkg/README.md b/r-pkg/README.md index 0f51616..b8e903f 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](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.r-project.org/package=uptasticsearch) ## Introduction diff --git a/r-pkg/docs/index.html b/r-pkg/docs/index.html index 8582df8..ccff0af 100644 --- a/r-pkg/docs/index.html +++ b/r-pkg/docs/index.html @@ -370,7 +370,7 @@

    Developers

    Dev status

    • CRAN_Status_Badge
    • -
    • CRAN_Download_Badge
    • +
    • CRAN_Download_Badge
    diff --git a/r-pkg/docs/reference/chomp_hits.html b/r-pkg/docs/reference/chomp_hits.html index c1b3564..10d9853 100644 --- a/r-pkg/docs/reference/chomp_hits.html +++ b/r-pkg/docs/reference/chomp_hits.html @@ -126,7 +126,7 @@

    Examp "film":"Avengers: Infinity War","pmt_amount":12.75}]}}}]' # Chomp into a data.table -sampleChompedDT <- chomp_hits(hits_json = result, keep_nested_data_cols = TRUE)
    #> INFO [2017-08-28 00:25:38] Keeping the following nested data columns. Consider using unpack_nested_data for one: +sampleChompedDT <- chomp_hits(hits_json = result, keep_nested_data_cols = TRUE)
    #> INFO [2017-08-28 17:10:32] Keeping the following nested data columns. Consider using unpack_nested_data for one: #> details.pastPurchases
    print(sampleChompedDT)
    #> timestamp cust_name details.cust_class details.location #> 1: 2017-01-01 Austin big_spender chicago #> 2: 2017-02-02 James peasant chicago diff --git a/r-pkg/docs/reference/unpack_nested_data.html b/r-pkg/docs/reference/unpack_nested_data.html index be5e124..0b91f91 100644 --- a/r-pkg/docs/reference/unpack_nested_data.html +++ b/r-pkg/docs/reference/unpack_nested_data.html @@ -128,7 +128,7 @@

    Examp "film":"Avengers: Infinity War","pmt_amount":12.75}]}}}]' # Chomp into a data.table -sampleChompedDT <- chomp_hits(hits_json = result, keep_nested_data_cols = TRUE)

    #> INFO [2017-08-28 00:25:39] Keeping the following nested data columns. Consider using unpack_nested_data for one: +sampleChompedDT <- chomp_hits(hits_json = result, keep_nested_data_cols = TRUE)
    #> INFO [2017-08-28 17:10:35] Keeping the following nested data columns. Consider using unpack_nested_data for one: #> details.pastPurchases
    print(sampleChompedDT)
    #> timestamp cust_name details.cust_class details.location #> 1: 2017-01-01 Austin big_spender chicago #> 2: 2017-02-02 James peasant chicago From 538ae1dffd4742be3fa1a1a943bbe8c9f8a1aeca Mon Sep 17 00:00:00 2001 From: James Lamb Date: Wed, 30 Aug 2017 20:01:00 -0500 Subject: [PATCH 3/3] Updated links in README. Incremented to dev version number --- README.md | 2 +- r-pkg/DESCRIPTION | 2 +- r-pkg/README.md | 2 +- r-pkg/cran-comments.md | 44 +++++++++++++++++++- r-pkg/docs/index.html | 4 +- r-pkg/docs/reference/chomp_hits.html | 2 +- r-pkg/docs/reference/index.html | 2 +- r-pkg/docs/reference/unpack_nested_data.html | 2 +- 8 files changed, 51 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index dde877b..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.r-project.org/package=uptasticsearch) +[![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 88f4948..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.1.0 +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/README.md b/r-pkg/README.md index b8e903f..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.r-project.org/package=uptasticsearch) +[![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/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/index.html b/r-pkg/docs/index.html index ccff0af..b06b045 100644 --- a/r-pkg/docs/index.html +++ b/r-pkg/docs/index.html @@ -369,8 +369,8 @@

    Developers

    Dev status

      -
    • CRAN_Status_Badge
    • -
    • CRAN_Download_Badge
    • +
    • CRAN_Status_Badge
    • +
    • CRAN_Download_Badge
    diff --git a/r-pkg/docs/reference/chomp_hits.html b/r-pkg/docs/reference/chomp_hits.html index 10d9853..3d3815f 100644 --- a/r-pkg/docs/reference/chomp_hits.html +++ b/r-pkg/docs/reference/chomp_hits.html @@ -126,7 +126,7 @@

    Examp "film":"Avengers: Infinity War","pmt_amount":12.75}]}}}]' # Chomp into a data.table -sampleChompedDT <- chomp_hits(hits_json = result, keep_nested_data_cols = TRUE)
    #> INFO [2017-08-28 17:10:32] Keeping the following nested data columns. Consider using unpack_nested_data for one: +sampleChompedDT <- chomp_hits(hits_json = result, keep_nested_data_cols = TRUE)
    #> INFO [2017-08-30 20:00:04] Keeping the following nested data columns. Consider using unpack_nested_data for one: #> details.pastPurchases
    print(sampleChompedDT)
    #> timestamp cust_name details.cust_class details.location #> 1: 2017-01-01 Austin big_spender chicago #> 2: 2017-02-02 James peasant chicago diff --git a/r-pkg/docs/reference/index.html b/r-pkg/docs/reference/index.html index 8e617ba..228659f 100644 --- a/r-pkg/docs/reference/index.html +++ b/r-pkg/docs/reference/index.html @@ -85,7 +85,7 @@ diff --git a/r-pkg/docs/reference/unpack_nested_data.html b/r-pkg/docs/reference/unpack_nested_data.html index 0b91f91..ae3982a 100644 --- a/r-pkg/docs/reference/unpack_nested_data.html +++ b/r-pkg/docs/reference/unpack_nested_data.html @@ -128,7 +128,7 @@

    Examp "film":"Avengers: Infinity War","pmt_amount":12.75}]}}}]' # Chomp into a data.table -sampleChompedDT <- chomp_hits(hits_json = result, keep_nested_data_cols = TRUE)

    #> INFO [2017-08-28 17:10:35] Keeping the following nested data columns. Consider using unpack_nested_data for one: +sampleChompedDT <- chomp_hits(hits_json = result, keep_nested_data_cols = TRUE)
    #> INFO [2017-08-30 20:00:06] Keeping the following nested data columns. Consider using unpack_nested_data for one: #> details.pastPurchases
    print(sampleChompedDT)
    #> timestamp cust_name details.cust_class details.location #> 1: 2017-01-01 Austin big_spender chicago #> 2: 2017-02-02 James peasant chicago