Query Model Reference GuideThere currently are two types of query models:Builder-based Query ModelThe goal of the Builder approach is to hide the low-level details and knowledge needed to create a query with a template. Instead of writing the Elasticsearch query directly, building blocks are selected and configured. This makes writing the query much easier and maintainable. However, it does mean that you are limited to the functionalities exposed by the query builder.Template-based Query ModelA query model using a template is wrapper around a templated Elasticsearch query. The template part here indicates that the model is a blueprint, that changes depending on the runtime values.