Improves search.

This commit is contained in:
Dominik Picheta 2014-12-07 02:53:10 +00:00
commit 8af27ae64d
3 changed files with 18 additions and 18 deletions

View file

@ -43,7 +43,7 @@ SELECT
THEN snippet(post_fts, '<b>', '</b>', '...', what)
ELSE post_fts.header END AS header,
CASE what WHEN 2
THEN snippet(post_fts, '<b>', '</b>', '...', what, -45)
THEN snippet(post_fts, '**', '**', '...', what, -45)
ELSE SUBSTR(post_fts.content, 1, 200) END AS content,
person.name AS author,
cdate,