소스 검색

Use new tsv column in searches

master
Dylan Baker 4 년 전
부모
커밋
2ca0e0fe2d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      lib/search.rb

+ 1
- 1
lib/search.rb 파일 보기

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

Loading…
취소
저장