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:
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+unsubscribe@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.