pelias / query

geospatial queries used by the pelias api
13 stars 26 forks source link

New `distance_feature` query type in ES7 #127

Open missinglink opened 3 years ago

missinglink commented 3 years ago

New query type distance_feature https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-distance-feature-query.html

We currently use geo_distance for filtering and _geo_distance for scoring, could this replace one or both of those?

Needs some investigating

missinglink commented 3 years ago

We also currently use function_score for focus queries.

missinglink commented 3 years ago

I suspect that if this is using a KNN algorithm that it could be significantly faster than using function_score for computing focus.point queries.