7 ms·
While elastic search queries ARE verbose (we've clocked up a query 23 levels deep in our app), the first example stated here is unnecessarily verbose. He's usin
by snikch 12y ago
While elastic search queries ARE verbose (we've clocked up a query 23 levels deep in our app), the first example stated here is unnecessarily verbose. He's using a `bool should` query, with only one value in it. A `bool should` is basically an `or` statement, so he could replace the whole thing with the single query he has inside it.
This definitely feels like a rant that picks up on a few issues with ES, and then smothers it with a variety of things which are different, but not really "issues". I've found the ES documentation to be a bit fragmented, but good once you know where things are. It's not the most newbie friendly system, but once you're up and running it's incredibly powerful.