It is hard for me to be sure from the screenshot, but it looks like you have defined the tokenizer in the settings block rather than the analysis block. That is, it looks like you have:
I hope this helps. One thing that might be useful to you on these forums is to paste code samples as text rather than as screenshots. It will make it easier for other community members to check on your code. Just make sure that you highlight your code and click the </> icon before you post, so that your code is well-formatted.
Thanks for your help but I've resolved the error already. I should have a s in the "mapping", ngram and not n_gram, and my analyzer should have been my_ngram_analyzer of course.
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.