Skip to content

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

@ste93cry

Description

@ste93cry

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions