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] Missing Indices.ReloadSearchAnalyzers #391

Open
pjninnis opened this issue Oct 10, 2023 · 2 comments
Open

[FEATURE] Missing Indices.ReloadSearchAnalyzers #391

pjninnis opened this issue Oct 10, 2023 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@pjninnis
Copy link

Is your feature request related to a problem?

C# Nugets
OpenSearch.Client v1.5.0
OpenSearch.net v1.5.0

We’ve upgraded from NEST/ElasticSearch.net to the OpenSearch equivalents, and I can’t seem to find any replacement/equivalent for Indices.ReloadSearchAnalyzers

In the OpenSearch docs itself, it seems to exist at the low level (Refresh search analyzer - OpenSearch documentation) but I can’t seem to locate any equivalent in the client?

We use this to reload our synonyms without refreshing the whole index.

What solution would you like?

Add the equivalent call to OpenSearch.net that exists in ElasticSearch.net

What alternatives have you considered?

Without this functionality, we will need to explicitly call the OpenSearch server via an HTTP POST /_plugins/_refresh_search_analyzers/"index"

Do you have any additional context?

@pjninnis pjninnis added enhancement New feature or request untriaged labels Oct 10, 2023
@Xtansia Xtansia added good first issue Good for newcomers and removed untriaged labels Oct 10, 2023
@Xtansia
Copy link
Collaborator

Xtansia commented Oct 11, 2023

While not ideal, you can work around this missing API and still take advantage of the client's configuration (e.g auth, hosts, SSL) by making the request with the low-level raw request method like so:

client.LowLevel.DoRequest<VoidResponse>(HttpMethod.POST, "/_plugins/_refresh_search_analyzers/" + indexName);

@pjninnis
Copy link
Author

pjninnis commented Oct 11, 2023 via email

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

No branches or pull requests

2 participants