Closed Aeilert closed 5 years ago
thanks @Aeilert
i may be wrong here, but i think you ar missing the fact that the example has a query statement, q="a*"
, which leads to fewer matches than the total number of documents in that index. thoughts?
Yes, of course. You are completely right.
I don't think the example code for collecting all documents with
scroll
returns the correct result.Compare the current example code:
with:
which matches the total number of documents:
Running R 3.5.3 and Elastic 7.0.0 w/ Docker.
Session Info
```r > sessionInfo() R version 3.5.3 (2019-03-11) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS Mojave 10.14.3 Matrix products: default BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] base64enc_0.1-3 elastic_1.0.0.9100 loaded via a namespace (and not attached): [1] httr_1.4.0 compiler_3.5.3 R6_2.4.0 tools_3.5.3 httpcode_0.2.0 curl_3.3 Rcpp_1.0.1 urltools_1.7.3 triebeard_0.3.0 [10] crul_0.7.4 jsonlite_1.6 ```