I'm pretty new to elasticsearch but loving it and seeing loads of potential
use cases for it. I have some dummy data going into it and some great
Kibana visualisations of it.
However, one issue I'm struggling with in output (and thus Kibana charts)
is lookup values and would appreciate some pointers.
We have data like
{"key":"123","value":"some human readable text that is usually but not 100%
consistent"}
I can do terms facets on the key and they work as expected. I can't do them
on the 'value' for two reasons:
the results are split by space (but I understand this could be resolved)
the value may change over time whereas the key never will
Is there a lightweight way to facet on the key but output one of the values
(most recent if there's control)?
If I've confused all of that, all I want is the human readable part as
legend on charts rather than the key
I'm pretty new to elasticsearch but loving it and seeing loads of
potential use cases for it. I have some dummy data going into it and some
great Kibana visualisations of it.
However, one issue I'm struggling with in output (and thus Kibana charts)
is lookup values and would appreciate some pointers.
We have data like
{"key":"123","value":"some human readable text that is usually but not
100% consistent"}
I can do terms facets on the key and they work as expected. I can't do
them on the 'value' for two reasons:
the results are split by space (but I understand this could be resolved)
the value may change over time whereas the key never will
Is there a lightweight way to facet on the key but output one of the
values (most recent if there's control)?
If I've confused all of that, all I want is the human readable part as
legend on charts rather than the key
You can ignore the other statistics if you just want the count. For best results, the value should be on a non-analyzed field.
--
Ivan
On Sun, Dec 8, 2013 at 5:19 AM, Simon W woodheads@gmail.com wrote:
hi folks,
I'm pretty new to elasticsearch but loving it and seeing loads of potential use cases for it. I have some dummy data going into it and some great Kibana visualisations of it.
However, one issue I'm struggling with in output (and thus Kibana charts) is lookup values and would appreciate some pointers.
We have data like
{"key":"123","value":"some human readable text that is usually but not 100% consistent"}
I can do terms facets on the key and they work as expected. I can't do them on the 'value' for two reasons:
the results are split by space (but I understand this could be resolved)
the value may change over time whereas the key never will
Is there a lightweight way to facet on the key but output one of the values (most recent if there's control)?
If I've confused all of that, all I want is the human readable part as legend on charts rather than the key
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.