Hi all,
Thanks in advance for helping me out with that.
My tricky question is how can I do a count on a specific field (let's same 'names') and not on the number of entries ? I'd like to count how many names do I have for a specific timestamp matching with my filters but I have multiple entries with the same name. So the count is actually showing me the number of entries.
A count where status=accepted will give me 3, but if I want the number of user accepted, I need to do a count on 'names' and I'll get 2 (this is a rubbish example by the way)
Hi @azasypkin,
Thanks a lot for your reply, it looks like exactly what I wanted
I added few 'match' more in your query to add different status in my result and it's still fine because they behave like a 'or' => (status=sts1 or status=sts2 or status=sts3) will be in my result.
My last question would be, what solution do I have if I want to apply another filter on another field like a and this time. Something like : "count the records where 'years':'2019' and status=accepted or status=tryagain, etc ..." ?
Any way ?
Thanks again
You can do lots of stuff with bar chart and another visualizations, but it highly depends on your particular use case.
using different queries ?
Not sure what you mean exactly here, but I'd encourage you to just experiment with bucket aggregations, sub-buckets etc. And then if you have more concrete questions open another thread at Discuss so that others can engage as well.
The forum is also full of real world examples and answers if you ask the right questions
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.