Skip to content
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

Distance feature query: add support for numeric fields #51804

Open
fbaligand opened this issue Feb 3, 2020 · 7 comments
Open

Distance feature query: add support for numeric fields #51804

fbaligand opened this issue Feb 3, 2020 · 7 comments
Labels
>enhancement :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team

Comments

@fbaligand
Copy link
Contributor

fbaligand commented Feb 3, 2020

Currently, Distance feature query deals only date and geo types.
This would be great to also support numeric types (long, integer, ...).

For example, I currently use Elasticsearch to do geocoding. For this use case, ability to find the closest street number, compared to searched street number would be very interesting!

@dliappis dliappis added the :Analytics/Geo Indexing, search aggregations of geo points and shapes label Feb 3, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (:Analytics/Geo)

@rjernst rjernst added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label May 4, 2020
@wchaparro wchaparro added the Team:Search Meta label for search team label Mar 22, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@wchaparro wchaparro removed :Analytics/Geo Indexing, search aggregations of geo points and shapes Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Mar 22, 2022
@wchaparro
Copy link
Contributor

This is a search issue, reassigning. Could this be done using runtime fields?

@fbaligand
Copy link
Contributor Author

This is a search issue.
But the aim of this issue is to enhanced « distance feature query », to support numeric fields, in plus of date and geopoint fields:
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-distance-feature-query.html

No relation with runtime fields.

@mayya-sharipova
Copy link
Contributor

mayya-sharipova commented Mar 24, 2022

@fbaligand Thank you for submitting your request. We've discussed it within the team, and we found the provided use case to be quite unique, we haven't heard from other users asking for this. Also there is a way to implement this through script_score query, where you can design you own scoring formula based on field's numeric values.

We will still keep the issue open in case we hear more use cases, but currently we don't plan to implement it.

@fbaligand
Copy link
Contributor Author

Sad to hear this, but thanks for the information.

@javanna javanna added :Search/Search Search-related issues that do not fall into other categories >enhancement labels Mar 28, 2022
@ulpcan
Copy link

ulpcan commented Dec 17, 2023

While my date field can be consist of epoch seconds, type of long should be work too

It could be nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team
Projects
None yet
Development

No branches or pull requests

8 participants