BUGFIX: Chinese search was broken

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
This commit is contained in:
Sam
2014-06-24 17:10:56 +10:00
parent 51ff644409
commit 3c84876660
8 changed files with 134 additions and 16 deletions

View File

@ -77,6 +77,10 @@ class SqlBuilder
16 => :value_to_boolean
}
def self.map_exec(klass, sql, args = {})
self.new(sql).map_exec(klass, args)
end
def map_exec(klass = OpenStruct, args = {})
results = exec(args)