writing my master thesis.
a) if we are in Kibana we can open the dev console and type Query DSL (formatted in JSON) to send it to Elasticsearch.
b) additionally we can send Query DSL (formatted in JSON) from any Rest-Client we want to reach Elasticsearch.
c) in Elastic Java Client we can actually type Query DSL (formatted in JSON) hardcoded into the programm code or load it from a text file and then send this to Elasticsearch.
But what if we don't type Query DSL but use the methods that Elastic Java Client provides?
Like following example from Building API objects | Elasticsearch Java API Client [8.4] | Elastic
ElasticsearchClient client = ... SearchResponse<SomeApplicationData> results = client .search(b0 -> b0 .query(b1 -> b1 .intervals(b2 -> b2 .field("my_text") .allOf(b3 -> b3 .ordered(true) .intervals(b4 -> b4 .match(b5 -> b5 .query("my favorite food") .maxGaps(0) .ordered(true) ) ) .intervals(b4 -> b4 .anyOf(b5 -> b5 .intervals(b6 -> b6 .match(b7 -> b7 .query("hot water") ) ) .intervals(b6 -> b6 .match(b7 -> b7 .query("cold porridge") ) ) ) ) ) ) ), SomeApplicationData.class );
If we send this to Elasticsearch was Elastic Java Client in the background actually writing Query DSL and sending that to Elasticsearch or did the Client communicate with Elasticsearch over any other way?
It would be great to have a source for that information to be quotable in my master thesis.
Thanks - Enomine