ropensci / elastic

R client for the Elasticsearch HTTP API
https://docs.ropensci.org/elastic
Other
245 stars 58 forks source link

Index_Get function no longer works? Maybe need to implement a set of post? #218

Closed happyshows closed 6 years ago

happyshows commented 6 years ago

Maybe it's related to the breaking change in 6.0? link

> index_get(index='datadict', features=c('settings','mappings'))
Error: 405 - Incorrect HTTP method for uri [/datadict/_settings,_mappings] and method [GET], allowed: [POST]

devtools::session_info()

> devtools::session_info() 
Session info ------------------------------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.4.1 (2017-06-30)
 system   x86_64, darwin15.6.0        
 ui       RStudio (1.1.383)           
 language (EN)                        
 collate  en_US.UTF-8                 
 tz       America/Chicago             
 date     2018-04-09                  

Packages ----------------------------------------------------------------------------------------------------------
 package    * version    date       source                            
 assertthat   0.2.0      2017-04-11 CRAN (R 3.4.0)                    
 backports    1.1.2      2017-12-13 cran (@1.1.2)                     
 base       * 3.4.1      2017-07-07 local                             
 base64enc    0.1-3      2015-07-28 cran (@0.1-3)                     
 bindr        0.1        2016-11-13 CRAN (R 3.4.0)                    
 bindrcpp     0.2        2017-06-17 CRAN (R 3.4.0)                    
 broom        0.4.2      2017-02-13 CRAN (R 3.4.0)                    
 cellranger   1.1.0      2016-07-27 CRAN (R 3.4.0)                    
 cli          1.0.0      2017-11-05 cran (@1.0.0)                     
 colorspace   1.3-2      2016-12-14 CRAN (R 3.4.0)                    
 compiler     3.4.1      2017-07-07 local                             
 crayon       1.3.4      2017-09-16 cran (@1.3.4)                     
 curl         3.2        2018-03-28 cran (@3.2)                       
 datasets   * 3.4.1      2017-07-07 local                             
 devtools     1.13.3     2017-08-02 CRAN (R 3.4.1)                    
 digest       0.6.15     2018-01-28 cran (@0.6.15)                    
 dplyr      * 0.7.4      2017-09-28 cran (@0.7.4)                     
 elastic    * 0.8.2.9323 2018-04-09 Github (ropensci/elastic@1742fee) 
 evaluate     0.10.1     2017-06-24 cran (@0.10.1)                    
 forcats    * 0.2.0      2017-01-23 CRAN (R 3.4.0)                    
 foreign      0.8-69     2017-06-22 CRAN (R 3.4.1)                    
 ggplot2    * 2.2.1.9000 2018-04-02 Github (tidyverse/ggplot2@3c9c504)
 git2r        0.19.0     2017-07-19 CRAN (R 3.4.1)                    
 glue         1.2.0      2017-10-29 cran (@1.2.0)                     
 graphics   * 3.4.1      2017-07-07 local                             
 grDevices  * 3.4.1      2017-07-07 local                             
 grid         3.4.1      2017-07-07 local                             
 gtable       0.2.0      2016-02-26 CRAN (R 3.4.0)                    
 haven        1.1.1      2018-01-18 cran (@1.1.1)                     
 hms          0.4.1      2018-01-24 cran (@0.4.1)                     
 htmltools    0.3.6      2017-04-28 CRAN (R 3.4.0)                    
 httr         1.3.1      2017-08-20 CRAN (R 3.4.1)                    
 jsonlite     1.5        2017-06-01 CRAN (R 3.4.0)                    
 knitr        1.20       2018-02-20 cran (@1.20)                      
 lattice      0.20-35    2017-03-25 CRAN (R 3.4.1)                    
 lazyeval     0.2.1.9000 2018-04-02 Github (hadley/lazyeval@93c455c)  
 lubridate    1.7.1      2017-11-03 CRAN (R 3.4.2)                    
 magrittr     1.5        2014-11-22 CRAN (R 3.4.0)                    
 memoise      1.1.0      2017-04-21 CRAN (R 3.4.0)                    
 methods    * 3.4.1      2017-07-07 local                             
 mnormt       1.5-5      2016-10-15 CRAN (R 3.4.0)                    
 modelr       0.1.1      2017-07-24 CRAN (R 3.4.1)                    
 munsell      0.4.3      2016-02-13 CRAN (R 3.4.0)                    
 nlme         3.1-131    2017-02-06 CRAN (R 3.4.1)                    
 parallel     3.4.1      2017-07-07 local                             
 pillar       1.1.0      2018-01-14 cran (@1.1.0)                     
 pkgconfig    2.0.1      2017-03-21 CRAN (R 3.4.0)                    
 plyr         1.8.4      2016-06-08 CRAN (R 3.4.0)                    
 psych        1.7.5      2017-05-03 CRAN (R 3.4.1)                    
 purrr      * 0.2.4      2017-10-18 cran (@0.2.4)                     
 R6           2.2.2      2017-06-17 CRAN (R 3.4.0)                    
 Rcpp         0.12.16    2018-03-13 cran (@0.12.16)                   
 readr      * 1.1.1      2017-05-16 CRAN (R 3.4.0)                    
 readxl       1.0.0      2017-04-18 CRAN (R 3.4.0)                    
 reshape2     1.4.3      2017-12-11 cran (@1.4.3)                     
 rlang        0.2.0.9001 2018-04-02 Github (r-lib/rlang@49d7a34)      
 rmarkdown    1.9        2018-03-01 cran (@1.9)                       
 rprojroot    1.3-2      2018-01-03 cran (@1.3-2)                     
 rstudioapi   0.7        2017-09-07 cran (@0.7)                       
 rvest        0.3.2      2016-06-17 CRAN (R 3.4.0)                    
 scales       0.5.0.9000 2018-04-02 Github (hadley/scales@d767915)    
 stats      * 3.4.1      2017-07-07 local                             
 stringi      1.1.6      2017-11-17 cran (@1.1.6)                     
 stringr    * 1.3.0      2018-02-19 cran (@1.3.0)                     
 tibble     * 1.4.2      2018-01-22 cran (@1.4.2)                     
 tidyr      * 0.8.0      2018-01-29 cran (@0.8.0)                     
 tidyverse  * 1.2.1      2017-11-14 CRAN (R 3.4.2)                    
 tools        3.4.1      2017-07-07 local                             
 utf8         1.1.3      2018-01-03 cran (@1.1.3)                     
 utils      * 3.4.1      2017-07-07 local                             
 withr        2.1.2      2018-04-02 Github (jimhester/withr@79d7b0d)  
 xml2         1.1.9000   2017-09-06 Github (r-lib/xml2@5799cd9)       
 yaml         2.1.18     2018-03-08 cran (@2.1.18)            
sckott commented 6 years ago

what version of Elasticsearch are you using?

sckott commented 6 years ago

yeah, I get the same thing. I'm not sure I understand. the docs https://www.elastic.co/guide/en/elasticsearch/reference/6.2/indices-get-settings.html don't say POST request only

happyshows commented 6 years ago

I'm on ES 6.2.3

sckott commented 6 years ago

ah, i see, They don't allow multiple comma separated parts of the path anymore. will fix that

sckott commented 6 years ago

@happyshows reinstall and try again, should be fixed. You can now only pass in one thing to features param in index_get