mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 20:50:15 +08:00
34b4b53bac
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).
8 lines
147 B
Ruby
8 lines
147 B
Ruby
# frozen_string_literal: true
|
|
|
|
class EnableUnaccentExtension < ActiveRecord::Migration[6.1]
|
|
def change
|
|
enable_extension 'unaccent'
|
|
end
|
|
end
|