Can I put a comment in an Elasticsearch JSON request? I want to add additional text to a request that is read by a person but ignored by Elasticsearch.
For example, if I have the following query:
{ "query": { "match_all": {} } }
I would like to add a comment, maybe something like this:
{ "query": { "match_all": {} }, "comment": "This query matches all documents." }
Hack workarounds will also be appreciated (for example, a query suggestion that does not affect the results).
source
share