Customization of Elasticsearch search requests

Description

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:
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-search-type.html

Another use case would be to enable using special indices or aliases in a query:
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html

Maybe it would already be sufficient, to make Hibernate Search configurable to register a custom Search Builder
org.hibernate.search.elasticsearch.work.impl.SimpleElasticsearchWork.Builder

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Christoph Friedl

Labels

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Major
Configure