elasticsearch


elasticsearch/kibana and nested object array


I have some documents that I imagine like those:
{
timestamp: "2017-11-12T00:00:00",
samples: [
{
param: "Temperature",
value: 76.3
},
{
param: "Pressure",
value: 12.3
}
]
}
I'd like to plot temperature vs pressure. and even better, aggregate the temperature for pressure ranges (avg for pressure between 0-5, 5-10, 10-15, tc...) How can I do this?
I could have done this:
{
timestamp: "2017-11-12T00:00:00",
"Temperature": 76.3
"Pressure": 12.3
}
but it is not really convenient because
I can have thousands of fields like temperature or pressure
I don't know the name of parameters a priori, therefore I cannot figure out how to make the mappings before inserting.
Any suggestion?
In demand since March 2014 :(
Q:
So can someone clarify this; In this post
(https://www.elastic.co/blog/kibana-4-beta-1-released) for
Kibana4beta1 it states that "Kibana 4 brings the power of
Elasticsearch's nested aggregations to the click of a mouse. " However
I'm unable to create any visualizations on documents with nested
objects. I've also made sure the nested objects in my index template
are marked as "nested". So is Kibana's support for nested aggregations
not the same as ES's support for nested objects? What am I missing?
Thanks.
A:
I think they're using "nested" here to refer to grouping via multiple
fields, eg "aggregate by time then geo" (not "nested" as in its use in
the platform for "nested objects")
kimchy (Elasticsearch's creator) commented on March 31, 2016
hey, chiming in. I chatted to Rashid about this, and while I feel the
pain of users wanting to use Kibana for nested mappings, supporting it
in a more general manner (that might imply additional features in
Elasticsearch level itself) is the path forward that maintains the
flexibility we need to have in Kibana. While getting this suggested
change in might solve the short term problem of not supporting nested,
it will prove to be problematic down the road.
I head and feel the need here for Kibana to support nested, but this
is one of those cases where if it is not obvious how it needs to be
solved, it is better to leave it unsolved until we have a solution
that feels natural. We definitely need to continue and explore that,
one of those, which we chatted in different places, is automatically
supporting nested (wrapping and so on) in ES itself.

Related Links

Fields not getting sorted in alphabetical order in elasticsearch
Sorting strings in elastic search
Missing data when using unique count and creating an aggregation in Kibana
elasticsearch filter array data with aggs
Sorting based on different properties with elasticsearch
Filter through goods and showing available options using Elasticsearch
Elasticsearch get field mapping for all fields without using asterisk (*)
Calculate conversion rate on events data Elasticsearch aggregations
Convert existing field mapping to geoip
How to filter using any of the full text queries?
Elasticsearch: private user documents
I am looking for ElasticSearch equivalent of below query -
Retrieve docs that contains only allowed tags (exactly equals)
Get max-score of Elasticsearch in CakePHP 3
ElasticSearch multiple terms aggregation order
Copy one column in elasticsearch index into another column applying analyzers

Categories

HOME
mod-rewrite
vagrant
yii
initialization
apk
portable-class-library
haxe
capistrano
supercollider
minecraft
lda
heuristics
orc
pm2
cuba-platform
cmake-gui
amazon-mws
jest
libgit2
akka-persistence
weex
workday
conda
cellular-network
history.js
macromedia
tilemill
locks
toad
rust-cargo
universal
sca
orchardcms-1.8
subclassing
landscape
bluemixtools
django-smart-selects
best-buy-api
hdiv
word-cloud
knockout-2.0
redisson
maven-jaxb2-plugin
palindrome
mongodb-aggregation
email-forwarding
apache-modules
petsc
data-management
visual-studio-monaco
xcode8-beta4
declarative
piping
vimperator
taco
jsr363
m4
gdl
json-spirit
phpquery
msgpack
smart-tv
lowercase
extend
blockquote
embeddedwebserver
componentart
actionpack
whitespace-language
python-c-extension
findersync
baseadapter
thoughtworks-go
window-resize
lumia-imaging-sdk
treeline
mfmessagecomposeview
preorder
boolean-algebra
tnt4j
quickgraph
postgres-xc
statechart
donut-chart
android-authenticator
gprof
ip-geolocation
uitextfielddelegate
struts2-s2hibernate
pcspim
uipangesturerecognizer
quartz-core
play2-mini
botnet
sql-parametrized-query
bll
explicit
multiple-users
facebook-fbml
activex-exe
levels
error-detection

Resources

Encrypt Message