Analyzers are associated with fields, so in your mapping you can specify
which analyzer to use. When you query a field, elasticsearch will know
which analyzer to use (although it can be overridden). For example:

"title": {"type": "string", "analyzer": "polish"}

If you are using the plugin, there is no need to create your own analyzer,
except if you want to override the default analyzer.
index.analysis.analyzer.default

I do not use Ruby, so I do not understand the context of the above example.

Cheers,

Ivan







On Wed, Jan 1, 2014 at 8:26 PM, Rafath Khan <rafat...@gmail.com> wrote:

>  Hello everybody
>
> I'm struggling with polish stem, I've indexed my documents with polish
> stemm
>
> @@elastic.index index: index, type: type, id: data[:id],
>                     body: {
>                         settings: {index: {
>                             analysis: {analyzer: {default: {type: 'snowball', 
> language: 'Polish'}}},
>                             filter: {my_stemmer: {type: 'stemmer', name: 
> 'polish'}}
>                         }},
>                         type_id: data[:type_id], descr: data[:descr].strip,
>                            search: "#{data[:type_id]} #{data[:descr]} 
> #{data[:descr].to_ascii}"}
>
>
> and now I don't know how to use polish analyzer to make query, can anybody
> provide an example?
>
> I've tried this example:
> http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-analyzers.html
> but I dont understand which index I should use?
>
> Im using ruby elasticsearch_api gem like this:
>
> @@elastic.search index: index, type: type, body: {query: {match: {search:query
> }}}
>
> so where this:
>
> index :
>   analysis :
>     analyzer :
>       standard :
>         alias: [alias1, alias2]
>         type : standard
>         stopwords : [test1, test2, test3]
>
>
> should I put?
>
> I'm using this stemmer:
> https://github.com/elasticsearch/elasticsearch-analysis-stempel
>
> Thanks for reply,
> best regards and happy new year! :)
>
>  --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/c5201c97-d06b-4780-a7a5-b82fa0611cdb%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQC89St%2BH-3cwcHHuzzg4pKMgOjPYqcp46qorNW-s8F1YA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to