public class ElasticsearchQueryOptimizer
extends java.lang.Object| Modifier and Type | Method and Description |
|---|---|
static io.vertx.core.json.JsonObject | optimize(io.vertx.core.json.JsonObject query)Optimize the given Elasticsearch query. |
public static io.vertx.core.json.JsonObject optimize(io.vertx.core.json.JsonObject query)
Optimize the given Elasticsearch query. For example, remove unnecessary boolean clauses or merged nested ones.
Attention: This method is destructive. It changes the given object in place.
query - the query to optimizequery)