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

Nested field support #1084

Open
Alex-Ikanow opened this issue Mar 21, 2014 · 401 comments
Open

Nested field support #1084

Alex-Ikanow opened this issue Mar 21, 2014 · 401 comments
Labels
Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) Feature:New Field Type Add support for an Elasticsearch field type in Kibana high hanging fruit impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:x-large Extra Large Level of Effort release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@Alex-Ikanow
Copy link

Alex-Ikanow commented Mar 21, 2014

This is sort of a duplicate of some other issues I searched for but I haven't seen this particular aspect discussed, so I thought this was worth a separate issue.

You read the _mapping field, so you should know when a particular field is nested, so can it not automatically apply the correct nested facet/query when such a field is selected in queries or facets?

(Alternatively/in addition as suggested by #532, you could have a checkbox to allow users to select it themselves, perhaps as an interim measure)

I'm sure there are some cases where this gets complicated, but there are also a bunch of cases where it's a straightforward changing of one block of JSON to another.

Latest update: #1084 (comment)

@shayts7
Copy link

shayts7 commented Jan 21, 2015

+1 for nested object aggregation.

@matthewgaulin
Copy link

+1

5 similar comments
@Charlesbot
Copy link

+1

@ghost
Copy link

ghost commented Jan 31, 2015

+1

@bzz
Copy link

bzz commented Feb 2, 2015

+1

@Kallin
Copy link

Kallin commented Feb 2, 2015

+1

@deepakas
Copy link

deepakas commented Feb 5, 2015

+1

@matogertel
Copy link

+1

2 similar comments
@c0deaddict
Copy link

+1

@theNewFlesh
Copy link

+1

@krisb78
Copy link

krisb78 commented Feb 21, 2015

+100000

@ddaumann
Copy link

+1

@Kallin
Copy link

Kallin commented Feb 24, 2015

to be clear, there is no way to do a nested filter/query/agg in kibana 4 right now, is there?

@Medi0ker
Copy link

+1

@ajrasch
Copy link

ajrasch commented Feb 26, 2015

+11111

@calippo
Copy link

calippo commented Mar 2, 2015

+1

6 similar comments
@polloelastico
Copy link

+1

@Filirom1
Copy link
Contributor

Filirom1 commented Mar 3, 2015

+1

@MichaelBorde
Copy link

+1

@vordimous
Copy link

+1

@tonymwinters
Copy link

+1

@KevinFarrell
Copy link

+1

@nbeede
Copy link

nbeede commented Mar 12, 2015

+2

@calvdee
Copy link

calvdee commented Mar 13, 2015

+1

@Sandy381
Copy link

+1

1 similar comment
@tg295
Copy link

tg295 commented Jun 30, 2022

+1

@ebuildy
Copy link
Contributor

ebuildy commented Jul 5, 2022

as a quick wordaround, you could use Transformation to create new elasticsearch indices, see https://www.elastic.co/guide/en/elasticsearch/reference/current/transform-overview.html, to flat your data to match "kibana format".

@fatihakafou
Copy link

+1

@gueri-fr
Copy link

gueri-fr commented Nov 4, 2022

+1

@petrklapka petrklapka added Team:Visualizations Visualization editors, elastic-charts and infrastructure and removed Team:AppServicesSv labels Nov 9, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations)

@pokrovskyy
Copy link

My 5 cents here. IMO it is a hugely undervalued feature that is missing in Kibana for years. Without the ability to efficiently visualize & aggregate nested fields - I do not see much value in using nested fields at all. I built an app data collection into ElasticSearch using my best understanding of how nested fields can help build and store logical data structures and collected days of useful data which are pretty much useless now.

Great workaround suggestion by @mattkime to use scripted fields which I also came up to & tried - it kind of worked, but certain fields in my case are floats and for whatever reason Kibana kept exploding on them. Not to mention the need to configure them all. So no-go. Transformations not really useful too if you want to have live dashboards

Eventually, I ended up changing the incoming data format by flattening all the nested structures into a flat document. Yuck - but at least it's all usable now. Not very happy with this, but so far seems like it's the only reliable way.

BOTTOM LINE - read this and think twice before using nested fields in your ElasticSearch strategies, you might be having issues visualizing them later 😄

@ppisljar ppisljar added loe:x-large Extra Large Level of Effort and removed loe:small Small Level of Effort labels Dec 20, 2022
@mrPsycox
Copy link

mrPsycox commented Mar 9, 2023

Do you have news on this feature? Right now, nested fields are showed but are not aggregatable.

@ninoslavmiskovic
Copy link
Contributor

In the near term, our focus is on other key initiatives. Still, we remain open to exploring nested field support in the future as we continue to assess the evolving needs of customers and users.

@subrt
Copy link

subrt commented Oct 7, 2023

+1

1 similar comment
@hugocorreia77
Copy link

+1

@Jzhnakui
Copy link

+1!!!!!!!!!!!!!
its import!!

@carlopuri
Copy link

+1
please add this feature.
our use case is to visualise nested information based on connected "levels" and "sub levels".
vega has worst performance and the development it's very uncomfortable.
last but not least thank you for the effort spent on improving kibana

@paul21
Copy link

paul21 commented Apr 1, 2024

It's been 10 years now. Happy birthday everyone!

@waynehamadi
Copy link

waynehamadi commented Apr 1, 2024

It's been 10 years now. Happy birthday everyone!

haha that's funny.
I am kind of ashamed I completely dropped the ball on this, I was going to build it but it became less of a priority at my job.

Honestly, we ended up just building reports on SQL, like everyone else, instead of using Kibana for that.

I understand why elastic doesn't do it. It's a pain in the butt to do, there is a bunch of edge cases that can appear.
But at the time, the pain was real.

@Hronom
Copy link

Hronom commented Apr 1, 2024

Ok we need to wait another 5 years to make AI handle this task.

@arkel-s
Copy link

arkel-s commented Apr 2, 2024

Exactly this situation 😆 https://xkcd.com/2881/

@thomasneirynck
Copy link
Contributor

thomasneirynck commented Apr 12, 2024

A short update on this:

At the moment, there is no active effort in Lens to support nested fields.

You can use Vega as a work-around. On that note: #1084 (comment), when saying "Vega has the worst performance", are you (cc @carlopuri) referring to the time it takes to run the nested-aggregation, or the actual rendering time of Vega?

Nested-fields are a niche feature; if you need them for visualizations, and you can use an alternative method when indexing, please consider to do so. More info on alternative ways to model data can be found here https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html.

While ES|QL has currently no support for nested-fields, ES|QL has been discussed as a potential way to bring analytics on nested fields to Kibana (elastic/elasticsearch#107434).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) Feature:New Field Type Add support for an Elasticsearch field type in Kibana high hanging fruit impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:x-large Extra Large Level of Effort release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests