mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Use Postgres unaccent to ignore accents (#16100)
The search_ignore_accents site setting can be used to make the search indexer remove the accents before indexing the content. The unaccent function from PostgreSQL is better than Ruby's unicode_normalize(:nfkd).
This commit is contained in:
7
db/migrate/20220304162250_enable_unaccent_extension.rb
Normal file
7
db/migrate/20220304162250_enable_unaccent_extension.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class EnableUnaccentExtension < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
enable_extension 'unaccent'
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user