elasticsearch-net
elasticsearch-net copied to clipboard
DistanceFeature is missing in the 8.x library
Is your feature request related to a problem? Please describe.
DistanceFeature
seems to be missing in the new 8.x library, it was present in NEST.
And it is also in version 8.8 documentation, so there are no signs that this feature is getting retired.
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-distance-feature-query.html
Describe the solution you'd like
In NEST it was possible to access it through a BoolQueryDescriptor
.
Ex: descriptor.Should(s => s.DistanceFeature(dist => dist.Field(fld => fld.DateModified)...
I see GeoDistance
is a method in QueryDescriptor<TDocument>
, so DistanceFeature
could also be there.
Describe alternatives you've considered Didn't find any workarounds for the moment.
Additional context Checked the version 8.0 release notes -> missing features and it is not present there, so I'm not sure what are the plans for this feature.
Are there plans to include this in the near future? It's pretty useful in some scenarios for increasing accuracy.
Upvote
+1 What's the status on this?
DistanceFeatureQuery is available in 8.14.4.