Elasticsearch is a search server based on Apache Lucene. As a developer it is easy to use, has an expressive query DSL and all is based on JSON serialization. Often though I find myself in a position where I need to adapt queries frequently and non-trivially, say in a demonstration in front of customers or product owners. The questions are mostly similar: “what if I also filter for X”, “how does the ranking change, when I add a freshness function”, “do I get a better result if I boo...