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:
Jarek Radosz
2025-01-03 23:21:18 +01:00
committed by GitHub
parent b4f0a8748d
commit a33e9bc2f9
4 changed files with 25 additions and 8 deletions

View File

@ -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)