-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Slowlog on Index Settings descriptor is not translated correctly to JSON #7865
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
Comments
The These settings are part of the var x = new CreateIndexRequestDescriptor<int>("test")
.Settings(s => s
.IndexingSlowlog(d => d
.Threshold(t => t
.Index(f => f.Warn(TimeSpan.FromSeconds(5)))))
.Search(x => x
.Slowlog(x => x
.Threshold(x => x
.Query(f => f.Warn(TimeSpan.FromSeconds(5)))
.Fetch(f => f.Warn(TimeSpan.FromSeconds(1))))))); Please let me know if that solves your problem. I'll add a note on my internal TODO list in order to remove the invalid properties from the descriptor. |
Perfect, it's working like that for me. I'm sometimes having issues to find those informations in the generated client. Do you have a documention somewhere or should I have took a direct look at the code to find? (because I searched for that but I assumed that it would be "SearchSlowlog" since it was "IndexingSlowlog". And yeah I agree that cleaning non valid APIs would be helpful, thanks! You can close the ticket :) |
We are actively working on improving the documentation, but a lot of parts are not very well documented at the moment - like in this case where I had to check the code instead. |
Elastic.Clients.Elasticsearch version:
8.9.0
Elasticsearch version:
8.9.0
.NET runtime version:
7.0.9
Operating system version:
Windows 11
Description of the problem including expected versus actual behavior:
Using
generate this JSON
which is not supported by Elasticsearch 8.9 and replied by it:
The text was updated successfully, but these errors were encountered: