You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing a reindex I want to set slices to auto but the api only allows me to set a nullable long
///<summary>The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`.</summary>
public long? Slices
{
get => Q<long? >("slices");
set => Q("slices", value);
}
How can one reproduce the bug?
Try and reindex with slices set to auto with the Opensearch .net client (1.6.0)
What is the expected behavior?
Be able to specify auto slices
What is your host/environment?
Linux
Do you have any screenshots?
No
Do you have any additional context?
The text was updated successfully, but these errors were encountered:
Thank you for reporting this! It appears that when the client code was generated the spec used only specified slices as an integer, not that it also accepts the string auto. I will look into a good way to represent this and make a bugfix.
In the meantime you should be able to work around this by taking advantage of the "raw" request methods:
varresponse=awaitclient.Http.PostAsync<ReindexOnServerResponse>("/_reindex",
d =>d.SerializableBody(new{source=new{index="source-index"},dest=new{index="dest-index"}}).QueryString(qs =>qs.Add("slices","auto")));
What is the bug?
When doing a reindex I want to set slices to auto but the api only allows me to set a nullable long
How can one reproduce the bug?
Try and reindex with slices set to auto with the Opensearch .net client (1.6.0)
What is the expected behavior?
Be able to specify auto slices
What is your host/environment?
Linux
Do you have any screenshots?
No
Do you have any additional context?
The text was updated successfully, but these errors were encountered: