When I try to create this mapping in ES 5.4, I get the error message that I cannot set analyzer and search_analyzer on the root of the type.
So how do I define which analyzer to use for this type?
I also read that if you define an analyzer named "default" and/or "default_search" in your index settings this will be the default analyzer for the index. But this does not seem to work for me...
I solved it by changing the name of the analyzers in the settings to "default" and "default_search"
At first I thought it did not work, but when I examined the mappings closed I saw that I had defined "analyzer: standard" on the field I was trying to query... I removed that form the mappings and then everything worked as expected.
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.