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
Is your feature request related to a problem? Please describe.
There is ony single overload of FiltersAggregationDescriptor.Filter method which accepts Buckets<Query>:
Migrating from NEST to the new driver/client I have the same issues all over the place. In NEST query descriptors also implemented the corresponding query interface (e.g. BoolQueryDescriptor<T> : IBoolQuery).
In general, migrating from NEST is truly painful. There's no migration guide, no documentation/API reference for the .Net client, and close-to-no documentation on mouse-over in the IDE. You have to start guessing the new class names and go from there (usually decompiling the code and looking deeply into the various classes).
A conversion or inheritance structure like in NEST (where the descriptors are derived from the request/data classes or implement the same interface) won't get implemented in version 8.x of the client. I will re-evaluate the current design for the 9.x release.
Currently, unions are missing support for descriptors. This is the root cause that prevents an overload from being generated at this place (and many others). Implementing descriptor support for unions is on my todo list 🙂
This fundamental design decision was taken before I inherited this project and for now I won't change this back. As stated above, I'll re-evaluate this design together with the former maintainers and try to improve usability for version 9.x.
Is your feature request related to a problem? Please describe.
There is ony single overload of
FiltersAggregationDescriptor.Filter
method which acceptsBuckets<Query>
:This means that only
Query
can be used in the filter, notQueryDescriptor
using FluentAPI.What's worse is that we can't use FluentAPI in the whole path and we are stuck with
Query
object.There is a related issue described here https://discuss.elastic.co/t/migrating-from-net-nest-client-to-v8-elastic-clients-elasticsearch-net-client/334959
Describe the solution you'd like
Provide a
.ToQuery()
conversion methodOR
Create new overload for
FiltersAggregationDescriptor.Filter
The former is preferred because it is more versatile.
Additional context
For now we used this workaround:
The text was updated successfully, but these errors were encountered: