It appears they are in a logical order - I would recommend splitting them and index the country/city/etc as individual properties on the document. You can do this in within your software, or if that is not possible with Logstash or ingest with the Grok processor.
Yes, splitting them is the easy way to go. but i was wondering if there is a way inside elastic search DSL, so i can use that filer query and show the counts in Kibana? No 3rd parties involved.
I am imagining this as:
All i have is a tree like structure,
so is there a way i get the level-1 child counts from any given node. ?
I am not aware of a way to dynamically do this at query time - but that's not to say it isn't possible. Even if it was, it would be extremely inefficient as it would need to be performed on the entire data set to query/aggregate.
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.