I am using Vega to create an age pyramid and I would like to filter the data by clicking on a bar. Thus, I created a signal and used kibanaAddFilter to define the query, as shown in the code below.
In this case, the alias of the expression function kibanaAddFilter(query, index, alias) was set to 'age', but when I apply the filter, the query appears in the filter bar (image below) instead of the alias (filter label). Am I using this wrongly? How should this parameter be used?
I upgraded the deployment from v7.13.4 to v8.1.2 and now the filter appears as shown in the image below. It is not yet the defined label in the alias, but it is friendlier than before.
In my case the label is not working either. What I managed to do is make the filter more "friendly", I think if you change it to {"match_phrase": {"manufacturer.keyword": "Oceanavigations"}}, in the filter bar it will look like manufacturer.keyword: Oceanaviations.
A tip is to click on the +Add filter in the filter bar, apply the filter you want and save it. Then you click to edit it and select the option "Edit as Query DSL", that way you will have the query to make the filter more "friendly".
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.