I am really struggling to edit my existing index, in order to exclude certain fields from being searchable.
I've tried so many suggestions that I'm just about to go insane.
My ES index is idx-wsa_access_logs and the field I want to exclude is http_method.
You can't change the mapping of an index that already exists, you need to delete it and recreate the data, or reindex into a new index with the new mapping.
Yes, I tried "index": false but it did not do what I am trying to achieve.
Kibana's 'index pattern creator' shows my field as non-searchable and under the 'discover' area it shows it as an available field on the left.
I don't want ES or Kibana know anything about this field, other than it being in the original message.
The enabled setting, which can be applied only to the mapping type and to object fields, causes Elasticsearch to skip parsing of the contents of the field entirely. The JSON can still be retrieved from the _source field, but it is not searchable or stored in any other way
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.