lib/searchkick/index_options.rb in searchkick-3.0.1 vs lib/searchkick/index_options.rb in searchkick-3.0.2
- old
+ new
@@ -167,9 +167,33 @@
},
searchkick_search2: {
type: "kuromoji"
}
)
+ when "korean"
+ settings[:analysis][:analyzer].merge!(
+ default_analyzer => {
+ type: "openkoreantext-analyzer"
+ },
+ searchkick_search: {
+ type: "openkoreantext-analyzer"
+ },
+ searchkick_search2: {
+ type: "openkoreantext-analyzer"
+ }
+ )
+ when "vietnamese"
+ settings[:analysis][:analyzer].merge!(
+ default_analyzer => {
+ type: "vi_analyzer"
+ },
+ searchkick_search: {
+ type: "vi_analyzer"
+ },
+ searchkick_search2: {
+ type: "vi_analyzer"
+ }
+ )
when "polish", "ukrainian", "smartcn"
settings[:analysis][:analyzer].merge!(
default_analyzer => {
type: language
},