We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72098e5 commit 3e46d82Copy full SHA for 3e46d82
mcp/src/apis/search.ts
@@ -127,7 +127,7 @@ export const searchFactory: ApiFactory<
127
AND (($2::TEXT[] IS NULL) OR (channel_id = ANY($2)))
128
AND (($3::TIMESTAMPTZ IS NULL) OR ts >= $3::TIMESTAMPTZ)
129
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')`}
+ ORDER BY ${type === 'semantic' ? `embedding <=> $5::vector(1536)` : `searchable_content <@> to_bm25query($5::text, 'slack.message_vanilla_searchable_content_bm25_idx')`}
131
LIMIT $6`,
132
[
133
userIdsToFilterOn,
0 commit comments