Comments (4)
Those are great points. Thanks for explaining.
from uptasticsearch.
Sounds good, though we should clarify that in the docs too.
from uptasticsearch.
Do you think that there should be a .ValidateAndFormatIndex
function? What about validation on trailing_args
and query_body
?
Is the problem with allowing a user to pass NULL
as the index that the resulting query might take a very long time, since it is searching over all indexes?
from uptasticsearch.
@mfrasco I'm not a .ValidateAndFormatIndex
is right for this particular issue. Not passing an index is "valid".
I also want to avoid validating queries because the query DSL changes radically from major ES version to major ES version. We've explicitly tried to keep the scope of this project to the execution or requests and parsing of results.
My concern isn't explicitly that the query will take too long, since the query-all-indices use case should definitely be something we support. My thinking is that allowing NULL
means that you can find yourself in that world silently. Forcing people to use "_all"
is safer.
FWIW I hit this when I was trying to subset into the output from get_fields()
then pipe the result of that to es_host
. I wrote a bad subset condition which silently evaluated to NULL
, and then noticed in the log that es_search
was trying to pull WAY more data than I expected.
from uptasticsearch.
Related Issues (20)
- CI is broken with Java issues again HOT 1
- Release Python client on PyPI
- Bad substitution in setup_local.sh
- multi-line blocks in roxygen documentation should be aligned to the first non-tag word
- Add linting on R code
- standardize directory names on kebob-case HOT 2
- Add 'covr' to Suggests in the R package HOT 2
- Unnecessary numbering in comments
- Add lifecycle badges to README
- Add codecov badge to the README HOT 1
- docs style: inline mentions of functions should use parentheses HOT 2
- Make README examples copy-paste runnable
- explicitly add language tags to all markdown code blocks HOT 1
- hex logo HOT 5
- Replace use of 'ES' with 'Elasticsearch' everywhere in the repo
- problems with certificate HOT 4
- [ci] Move CI from Travis to GitHub Actions HOT 2
- How to enter password and username in to the es_host HOT 3
- How to enter API key to connect to elastic instance HOT 1
- R tests using deprecated testthat functionality
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uptasticsearch.