Thank you for this link. For lucene we already defined a custom SearchMapping registered by hibernate.search.model_mapping. For Elasticsearch we would need a second configuration registered by hibernate.search.elasticsearch.analysis_definition_provider. My hope is that I can define both backends (lucene and elasticsearch) in one single class or by annotations. What is still missing in my head is a way how to replace DefaultElasticsearchAnalyzerDefinitionTranslator by a CustomTranslator. I tried to register it by referencing this class in META-INF/services/org.hibernate.search.elasticsearch.settings.impl.translation.ElasticsearchAnalyzerDefinitionTranslator. But then I get an exception with message HSEARCH000195: Multiple service implementations detected for service 'interface org.hibernate.search.elasticsearch.settings.impl.translation.ElasticsearchAnalyzerDefinitionTranslator' |