I'm new to Elasticsearch and am trying to spin up with some testing,
however I'm running into an issue when it comes to using (for this case) a
French analyzer and stop words. This is the index I have set up:
However, when I run the 'Test Analyser' tool from ES Head, the French stop
words are still getting through while English stop words (the, a, etc..)
aren't. Any insight would be greatly appreciated. Thanks!
Hi Aaron,
as somebody answered on stackoverflowhttp://stackoverflow.com/questions/17910563/elasticsearch-foreign-language-stop-wordsto the same question, it seems that you have defined your french analyzer
in your index settings, but you should also use it in your mapping, to make
the connection between your fields where you want to use that analyzer and
the analyzer that you defined.
You can specify your mapping either while creating the index using the
create index api, or using the put mapping api afterwards (as long as you
make backward compatible changes).
Cheers
Luca
On Sunday, July 28, 2013 7:08:50 PM UTC+2, Aaron Troy wrote:
I'm new to Elasticsearch and am trying to spin up with some testing,
however I'm running into an issue when it comes to using (for this case) a
French analyzer and stop words. This is the index I have set up:
However, when I run the 'Test Analyser' tool from ES Head, the French stop
words are still getting through while English stop words (the, a, etc..)
aren't. Any insight would be greatly appreciated. Thanks!
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.