FIX: don't stem the search term

Search for "canned" not working correctly and "butted", "ands" and many more :)
This commit is contained in:
Sam Saffron
2016-10-07 12:40:57 +11:00
parent 4206eded50
commit 647ee46edf
2 changed files with 6 additions and 1 deletions

View File

@ -663,7 +663,7 @@ class Search
def self.ts_query(term, locale = nil, joiner = "&")
data = Post.exec_sql("SELECT to_tsvector(:locale, :term)",
locale: locale || long_locale,
locale: 'simple',
term: term
).values[0][0]