1367 shaares
101 private links
101 private links
This post strives to be useful to anyone who uses ElasticSearch, but all examples are going to be in Clojure since it’s what we use.
ElasticSearch is a wildly useful database (if I may say so), but at times it feels like its query language evolved rather than was planned. This manifests in it being rather ad-hoc and non-orthogonal. Plus using JSON with its low expressiveness adds quite a bit of verbosity. All of this leads to code which builds ES queries being messy and unpleasant to use.