Elasticsearch Foreign Language Stop-words

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:

test1: {

state: open
settings: {
    index.analysis.analyzer.french.tokenizer: standard
    index.analysis.filter.stop_fr.stopwords.0: _french_
    index.analysis.filter.stop_fr.type: stop
    index.analysis.analyzer.french.filter.1: stop_fr
    index.analysis.analyzer.french.filter.0: lowercase
    index.analysis.analyzer.french.type: custom
    index.number_of_shards: 5
    index.number_of_replicas: 1
    index.version.created: 900299
}

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!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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:

test1: {

state: open
settings: {
    index.analysis.analyzer.french.tokenizer: standard
    index.analysis.filter.stop_fr.stopwords.0: _french_
    index.analysis.filter.stop_fr.type: stop
    index.analysis.analyzer.french.filter.1: stop_fr
    index.analysis.analyzer.french.filter.0: lowercase
    index.analysis.analyzer.french.type: custom
    index.number_of_shards: 5
    index.number_of_replicas: 1
    index.version.created: 900299
}

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!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.