Skip to content

[FEATURE] Expose the action to refresh the search analyzers #678

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

Open
ste93cry opened this issue Mar 1, 2025 · 1 comment · May be fixed by #686
Open

[FEATURE] Expose the action to refresh the search analyzers #678

ste93cry opened this issue Mar 1, 2025 · 1 comment · May be fixed by #686
Labels
enhancement New feature or request

Comments

@ste93cry
Copy link

ste93cry commented Mar 1, 2025

Is your feature request related to a problem?

Synonyms can be configured using either a synonym_graph or synonym token filter that supports both inlining the words or referencing a file using the synonyms_path setting. When the updateable: true setting is also used, the analyzers using the filter can be reloaded by calling the POST /_plugins/_refresh_search_analyzers/<index or alias or wildcard> endpoint. However, this action is not exposed from any of the clients that this SDK provides, which makes it impossible to do so unless some custom code is implemented.

https://opensearch.org/docs/latest/im-plugin/refresh-analyzer/

What solution would you like?

I would like to see a client function that can call this endpoint.

What alternatives have you considered?

Some custom code implementing the opensearch.Request interface can be developed to be able to use the Do() function of the existing client.

Do you have any additional context?

I can help with the implementation. However, it's not clear to me where this function should live: in the documentation it's mentioned that the ISM plugin needs to be installed, but the endpoint does not fall under the standard _plugins/ism/ prefix, so I'm unsure whether I should add a new plugin folder under opensearch-go/plugins specifically for this feature or if I should add it to the existing ISM plugin.

@ste93cry ste93cry added enhancement New feature or request untriaged labels Mar 1, 2025
@andrross
Copy link
Member

Catch All Triage - 1 2

Thanks @ste93cry. Please feel free to create a pull request for this. I believe this is a feature of ISM so putting the code there seems to make sense.

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

Successfully merging a pull request may close this issue.

2 participants