mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05: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
11 lines
385 B
Ruby
11 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
|