Elasticsearch offers some very interesting query options in its search APIs.
It would be nice if there were at least some of these options usable via an Elasticsearch query interface in Hibernate Search.
One specific use case is defining the query type explicitly:
Another use case would be to enable using special indices or aliases in a query:
Maybe it would already be sufficient, to make Hibernate Search configurable to register a custom Search Builder