I enabled "ignoreFilterIfFieldNotInIndex" option in Kibana Advanced Settings, since I am using 2 data views and I would like to avoid filtering out documents if some field does not exist in the data view
However, it did not work while I successfully used it a few years ago
I found the similar issue on Github:
however, it was for the old Kibana version
Nevertheless, the issue can be reproduced on my current 8.15.0:
Steps to reproduce:
Run the following in Dev Tools to setup some example indices:
PUT my_index_1
{
"settings": {
"index": {
"number_of_shards": "1",
"number_of_replicas": "0"
}
}
}
PUT my_index_2
{
"settings": {
"index": {
"number_of_shards": "1",
"number_of_replicas": "0"
}
}
}
POST my_index_1/_doc
{
"field1": "A"
}
POST my_index_1/_doc
{
"field1": "B"
}
POST my_index_1/_doc
{
"field1": "C"
}
POST my_index_2/_doc
{
"field2": "A"
}
POST my_index_2/_doc
{
"field2": "B"
}
POST my_index_2/_doc
{
"field2": "C"
}
Create a dashboard with two metric visualizations with a simple Count aggregation, one for each index.
Add a filter on one of the fields, notice that both visualizations get filtered
Enable the advanced setting
Go back to dashboard and create a filter again. Notice both visualizations are still getting filtered.
Thanks for your post @nnikushkin I can't replicate this problem, it works fine for me. Can you turn the Advanced Setting off and on again and reload the page afterwards to make sure the change is applied?
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.