Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add Support for Additional Languages #12

Open
rafaucau opened this issue Sep 21, 2023 · 2 comments
Open

Feature Request: Add Support for Additional Languages #12

rafaucau opened this issue Sep 21, 2023 · 2 comments

Comments

@rafaucau
Copy link

The current list of supported languages is limited to the officially supported languages:

const languages = new Map();
[
'arabic',
'armenian',
'basque',
'bengali',
'brazilian',
'bulgarian',
'catalan',
'cjk',
'czech',
'danish',
'dutch',
'english',
'estonian',
'finnish',
'french',
'galician',
'german',
'greek',
'hindi',
'hungarian',
'indonesian',
'irish',
'italian',
'latvian',
'lithuanian',
'norwegian',
'persian',
'portuguese',
'romanian',
'russian',
'sorani',
'spanish',
'swedish',
'turkish',
'thai',
].forEach((language) => {
languages.set(language, language);
});

However, Elasticsearch offers plugins for additional languages, such as the Polish analysis plugin.

I would like to request the addition of support for languages that are available as Elasticsearch plugins. The complete list of available analysis plugins can be found here.

@TsXor
Copy link

TsXor commented Sep 24, 2023

After asking search engine, I found some analyzer query example:

{
  "analyzer" : "standard",
  "text" : "this is a test"
}

{
  "analyzer" : "ik_smart",
  "text" : "功能进阶"
}

It seems that only modifying the "analyzer" field is enough, and no additional adaptation is needed.
Thus, only frontend modification is needed.

@rafaucau
Copy link
Author

Ideally, a text box would be added to the extension settings that allows you to enter your custom analyzer name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants