I have field state which has 2 values "BEGIN" and "END", I want to show count when state is "BEGIN" so I've tried
{
"query": {
"match_phrase": {
"state": "BEGIN"
}
}
}
but nothing works, any idea how to do this. Thanks
I have field state which has 2 values "BEGIN" and "END", I want to show count when state is "BEGIN" so I've tried
{
"query": {
"match_phrase": {
"state": "BEGIN"
}
}
}
but nothing works, any idea how to do this. Thanks
Hi @tungpzostar,
I'd first create a viz that shows count for all states (just leave metric configuration as you've showed on a screenshot) and then I'd use filter bar to filter only by state:begin
:
If you'd do similar to my example, you'd I just have state: BEGIN/END
instead of mine cancelled: true/false
I can filter out state: BEGIN but can I do count BEGIN, count END in one data table. Thanks
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.