[hibernate-issues] [JIRA] (HSEARCH-3963) Make Elasticsearch translation extensible for usage of elasticsearch plugins

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Wed Jul 8 07:19:42 EDT 2020


Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) *commented* on HSEARCH-3963 ( https://hibernate.atlassian.net/browse/HSEARCH-3963?atlOrigin=eyJpIjoiNWY0MThiMDI4YmRhNDg4N2FlNTI5MDZmNWMzYzliNzUiLCJwIjoiaiJ9 )

Re: Make Elasticsearch translation extensible for usage of elasticsearch plugins ( https://hibernate.atlassian.net/browse/HSEARCH-3963?atlOrigin=eyJpIjoiNWY0MThiMDI4YmRhNDg4N2FlNTI5MDZmNWMzYzliNzUiLCJwIjoiaiJ9 )

> 
> 
> 
> My hope is that I can define both backends (lucene and elasticsearch) in
> one single class or by annotations.
> 
> 

As stated before, it definitely won't be possible in the future, so at best you're buying yourself some time.

Also, be aware that in order to use phonetic analyzers in Elasticsearch, you need to install additional plugins on the server side: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-phonetic-tokenfilter.html
So you *will* need to take specific steps in Elasticsearch anyway; maybe in this case it make sense to take specific steps on the Hibernate Search side as well?

> 
> 
> 
> 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 [...]
> 
> 

Ok, so you didn't make it work yet. Maybe let's continue the discussion on your PR? I provided a suggestion to implement things differently, which wouldn't require applications to implement a custom translator.

( https://hibernate.atlassian.net/browse/HSEARCH-3963#add-comment?atlOrigin=eyJpIjoiNWY0MThiMDI4YmRhNDg4N2FlNTI5MDZmNWMzYzliNzUiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3963#add-comment?atlOrigin=eyJpIjoiNWY0MThiMDI4YmRhNDg4N2FlNTI5MDZmNWMzYzliNzUiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100133- sha1:abe90d4 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200708/ad20edde/attachment.html 


More information about the hibernate-issues mailing list