Rokko_11 NA (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HSEARCH-3963 (
https://hibernate.atlassian.net/browse/HSEARCH-3963?atlOrigin=eyJpIjoiZjg...
)
Re: Make Elasticsearch translation extensible for usage of elasticsearch plugins (
https://hibernate.atlassian.net/browse/HSEARCH-3963?atlOrigin=eyJpIjoiZjg...
)
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'
(
https://hibernate.atlassian.net/browse/HSEARCH-3963#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-3963#add-comment?atlOrigin...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100133- sha1:abe90d4 )