Allow for Elasticsearch analyzer definitions to be applied in class bridges/custom field bridges

Description

Currently I see no way to apply custom Elasticsearch-defined analyzers on extra fields defined in class bridges.

With Lucene it is possible to do it as described here. In that article 'Solution 2' solves it using a custom analyzer implementation defined in the local code. In my case the analyzer is defined in Elasticsearch and I could not find a way to access the analyzer definition from the internal analyzer registry. 'Solution 3' relies on analyzer configuration defined by @AnalyzerDef which does not solve this issue for remotely-defined analyzers.

My use case:
I have a custom Elasticsearch index with custom analyzer definitions. I have a class bridge that adds document fields that need to be analyzed with the custom analyzers.

See related ticket here

Environment

Hibernate ORM 5.1.3.Final
Hibernate Search 5.6.1.Final
Elasticsearch 2.3.2
Java EE 7
DB engine: Aurora 5.6.10a

Status

Assignee

Yoann Rodière

Reporter

Ivan Krumov

Labels

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Major
Configure