Skip to content

Commit 3e46d82

Browse files
committed
correct fields
1 parent 72098e5 commit 3e46d82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp/src/apis/search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const searchFactory: ApiFactory<
127127
AND (($2::TEXT[] IS NULL) OR (channel_id = ANY($2)))
128128
AND (($3::TIMESTAMPTZ IS NULL) OR ts >= $3::TIMESTAMPTZ)
129129
AND ($4::TIMESTAMPTZ IS NULL OR ts <= $4::TIMESTAMPTZ)
130-
ORDER BY ${type === 'semantic' ? `embedding <=> $5::vector(1536)` : `text <@> to_bm25query($5::text, 'slack.message_vanilla_searchable_content_bm25_idx')`}
130+
ORDER BY ${type === 'semantic' ? `embedding <=> $5::vector(1536)` : `searchable_content <@> to_bm25query($5::text, 'slack.message_vanilla_searchable_content_bm25_idx')`}
131131
LIMIT $6`,
132132
[
133133
userIdsToFilterOn,

0 commit comments

Comments
 (0)