mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: Remove deprecated search_tokenize_chinese_japanese_korean
setting (#30549)
It was supposed to be removed ~3 years ago (there was [a migration](b4f0a8748d/db/migrate/20220126052157_change_segment_cjk_site_setting.rb
) already)
This commit is contained in:
@ -1098,7 +1098,15 @@ RSpec.describe Search do
|
||||
end
|
||||
|
||||
it "works in Chinese" do
|
||||
SiteSetting.search_tokenize_chinese_japanese_korean = true
|
||||
SiteSetting.search_tokenize_chinese = true
|
||||
post = new_post("I am not in English 你今天怎麼樣")
|
||||
|
||||
results = Search.execute("你今天", search_context: post.topic)
|
||||
expect(results.posts.map(&:id)).to eq([post.id])
|
||||
end
|
||||
|
||||
it "works in Japanese" do
|
||||
SiteSetting.search_tokenize_japanese = true
|
||||
post = new_post("I am not in English 何点になると思いますか")
|
||||
|
||||
results = Search.execute("何点になると思", search_context: post.topic)
|
||||
|
Reference in New Issue
Block a user