What I'd like to do is display in a data table the following value: doc['delta'].value * doc['modules.criticity'].value
In my table, I split the rows on the Termmodules.value.keyword
So everything's OK except for the criticity value because it does not return the criticity associated to the module value.
Anyone might have a clue on what I am missing? I think I understood why the result is bad, but I have no idea on how to achieve that...
Kibana doesn't yet support nested types, but it is one of our most popular feature requests. There's a Github issue you may be interested in following, which has more detail and discussion on this topic.
In the meantime, your best bet would be to extract those modules (if you are able) into separate fields in the document, rather than nesting them
Yes exactly! Either separating into separate documents as you've done above, or if it is for some reason important for them to be in the same document and the module values are static, you could alternatively do:
But generally I'd recommend going with the separate document approach from your example above. My example here only makes sense if you have a limited number of fixed module values.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.