mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: wire chat search box to full-text search (#27973)
This commit is contained in:
@@ -335,11 +335,6 @@ SET search_tsv = COALESCE(
|
||||
''::tsvector)
|
||||
FROM batch WHERE cm.id = batch.id;
|
||||
|
||||
-- name: ChatSearchQueryIsEmpty :one
|
||||
-- Reports whether search text tokenizes to an empty tsquery (e.g. '!!!').
|
||||
-- Used to reject input that would silently match nothing.
|
||||
SELECT numnode(websearch_to_tsquery('simple', @search::text)) = 0 AS is_empty;
|
||||
|
||||
-- name: GetChatByID :one
|
||||
SELECT *
|
||||
FROM chats_expanded
|
||||
|
||||
Reference in New Issue
Block a user