elastic / elasticsearch

Free and Open, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.45k stars 24.58k forks source link

Expand runtime_field data types to include ranges #89707

Open sypste opened 2 years ago

sypste commented 2 years ago

Describe the feature:

runtime_fields currently don't support range, e.g. date ranges, as data types (docs). This could be useful for analytical use cases that rely on durations.

Describe a specific use case for the feature:

An index may hold two or more fields that mark the start and end of a period, e.g. a session. There is currently no easy way to visualize such date ranges within Kibana using runtime_fields for experimental purposes, instead an index mapping would have to be deployed grabbing data from said date fields.

nickofthyme commented 2 years ago

I believe this issue is best suited here in the elasticsearch repo. If you disagree I will gladly return it to kibana.

elasticsearchmachine commented 2 years ago

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

giladgal commented 1 year ago

Thanks for submitting this enhancement suggestion. It is something we would like to develop, but it is not on our immediate roadmap, because of prioritization and taking into account the limited usage of range data types compared with other data types. We will get to it at some point. If a community member is interested, we would welcome a contribution for this feature.

wangjie-fourth commented 1 year ago

hi, I would like contribute this. i will do some research first, will update soon

uchiha-asha commented 1 year ago

Hi @javanna, I have figured out that I have to create an entry for Range Field in getRuntimeFields() in IndicesModule and create the script class corresponding to it. Can I start working on it?

uchiha-asha commented 1 year ago

@javanna please take a look at it

sreyaz11 commented 10 months ago

@uchiha-asha let's just solve this and put a merge request, also can you include me when solving I'd like to learn how you do this. plz contact at https://www.linkedin.com/in/shreyas-jadhav-9bb4a9157 if you'd like to share.

iakhiljoy commented 9 months ago

@uchiha-asha Are you still on it? or else I wish to take a look.

Shweta-Tapele commented 9 months ago

Hello , I would like to contribute on this.

elasticsearchmachine commented 1 month ago

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

MaxChanSZ commented 4 weeks ago

Hi, Can contribute if you need someone on this.