mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
3c84876660
BUGFIX: User locale was used index data BUGFIX: missing Norwegian fulltext config FEATURE: store the text used to index stuff in fulltext (for diagnostics / in page search) FEATURE: re-index posts when locale changes (in bg job) FEATURE: allow reindexing by trucating post_search_data Note: I removed japanese specific config cause it requires custom pg config, happy to add it once our base docker config ships with it
12 lines
385 B
Ruby
12 lines
385 B
Ruby
class AddRawDataToSearch < ActiveRecord::Migration
|
|
def change
|
|
add_column :post_search_data, :raw_data, :text
|
|
add_column :user_search_data, :raw_data, :text
|
|
add_column :category_search_data, :raw_data, :text
|
|
|
|
add_column :post_search_data, :locale, :string
|
|
add_column :user_search_data, :locale, :text
|
|
add_column :category_search_data, :locale, :text
|
|
end
|
|
end
|