Applying two filters instead of one with the Tim Roes tutorial does the job, but doesn't show up the message, it just applies them directly. I have been trying to understand how filter_bar does this in the default plugins without succes. Do you know any simple usage example? How could I add this functionality to my plugin?
I apologize in advance for the unhelpfulness of my reply... we don't officially support the plugin API for third-party developers, though we hope to do so in the future. So unfortunately, I can't really offer you any good advice on this problem. Maybe you could try reaching out to Tim directly?
Looking at the source code of Kibana it looks like the filter_manager.add method should automatically show this bar. Since the bar has afaik only inlcuded in more recent Kibana versions (not sure which exactly), I wonder, whether you have a high enough Kibana version to see this bar?
First of all, thank you for your tutorials. They have been of great help.
This is how I'm using the double filter in my code:
filterManager.add(...);
filterManager.add(...);
This directly applies the two filters, without asking
I have been doing some more research. This is what I got so far:
I have checked if the Kibana version I'm using (5.0.0) has this feature, and there it is: filter_bar.html has this feature, and actually visualizations like "Vertical bar chart" correctly displays the "Apply these filters?".
Setting a breakpoint in javascript at filter_manager.js/filterManager.add and executing a double filter in "Vertical bar chart" does nothing. The "Apply these filters?" question displays but it seems like this plugin is filtering somehow without using filterManager.add.
And here's where I'm stuck. Any ideas of what it could be or what I should try?
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.