I have excluded the field NodeAlias and NodeAlias.keyword in my index pattern. But when I am viewing my data in discovery and clicking in the search bar with kql as search language the excluded field is still suggested. It seems weird that you would filter on a field you don't want to see...
I have another index where there are a lot of fields in the documents and need to find a way to select which fields are used as suggestions in the search bar.
I did think about Field Level security but that requires a license which was not an option in this case.
But I actually found an ugly workaround.
If you set the type to completion in the mapping, the field is searchable but not viewed in the search bar. The downside to this solution is that the fields with this mapping behave like a keyword when queried the "normal" way (not by suggest).
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.