elasticsearch-net icon indicating copy to clipboard operation
elasticsearch-net copied to clipboard

DistanceFeature is missing in the 8.x library

Open JuganD opened this issue 1 year ago • 3 comments

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.

JuganD avatar Jul 25 '23 09:07 JuganD

Are there plans to include this in the near future? It's pretty useful in some scenarios for increasing accuracy.

PeLe01 avatar Sep 18 '23 10:09 PeLe01

Upvote

joshuaapple avatar Sep 19 '23 16:09 joshuaapple

+1 What's the status on this?

PetarDimitrov86 avatar Nov 24 '23 16:11 PetarDimitrov86

DistanceFeatureQuery is available in 8.14.4.

flobernd avatar Jul 04 '24 07:07 flobernd