浏览代码

Use new tsv column in searches

master
Dylan Baker 5 年前
父节点
当前提交
2ca0e0fe2d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      lib/search.rb

+ 1
- 1
lib/search.rb 查看文件

49
     FROM posts
49
     FROM posts
50
     INNER JOIN threads on posts.thread_id = threads.id
50
     INNER JOIN threads on posts.thread_id = threads.id
51
     WHERE
51
     WHERE
52
-      to_tsvector(body) @@ plainto_tsquery(?)
52
+      tsv @@ plainto_tsquery(?)
53
       AND (
53
       AND (
54
         (LOWER(posts.creator) = LOWER(?)) OR (? = '')
54
         (LOWER(posts.creator) = LOWER(?)) OR (? = '')
55
       )
55
       )

正在加载...
取消
保存