I am trying to filter an Elastic index to only return one record per doc_id and which I want to base the visualization on. If I use this in a Kibana dashboard visualization filter I get an error: '[size] query malformed, no start_object after query name'.
If I remove the size, the error changes to 'unknown field [aggs]'. The DSL runs in the console but not as a dashboard filter. Can anyone tell me if you can use aggregations in a dashboard filter please?
Thanks Joe - the data has multiple documents with the same doc_id but I want to sum the values for another field in the record called citationCount but summing it only once for each doc_id, and showing it in a bar graph as total citations by year. The citationCount values are the same across documents with the same doc_id.
So I was trying to filter down the index records to get just one per doc_id, then sum the citationCount by year. Is there another way to do that?
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.