Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(search): use icu_folding for channel content analyzer (#3423)
gbirmanfb1ca5b30396
diff --git a/infra/stacks/opensearch/helpers/constants.ts b/infra/stacks/opensearch/helpers/constants.tsindex 22dc3a2a7f..44bdcc0bcd 100644--- a/infra/stacks/opensearch/helpers/constants.ts+++ b/infra/stacks/opensearch/helpers/constants.ts@@ -9,7 +9,7 @@ export const CALL_RECORDS_ALIAS = 'call_records';// Underlying physical indices (versioned). Bump the suffix to roll a new// version, then swap the alias atomically.-export const CHANNELS_INDEX = 'channels_v1';+export const CHANNELS_INDEX = 'channels_v2';export const CHATS_INDEX = 'chats_v1';export const DOCUMENTS_INDEX = 'documents_v2';export const EMAILS_INDEX = 'emails_v1';diff --git a/infra/stacks/opensearch/helpers/scripts/create_indices.ts b/infra/stacks/opensearch/helpers/scripts/create_indices.tsindex 4d77399dc7..acd02ec0fd 100644--- a/infra/stacks/opensearch/helpers/scripts/create_indices.ts+++ b/infra/stacks/opensearch/helpers/scripts/create_indices.ts@@ -172,6 +172,15 @@ const CHANNEL_BODY = {settings: {...SHARD_SETTINGS,refresh_interval: '1s',+ analysis: {+ analyzer: {+ content_text: {+ type: 'custom',+ tokenizer: 'standard',+ filter: ['icu_folding'],+ },+ },+ },},mappings: {dynamic: 'false',@@ -206,7 +215,7 @@ const CHANNEL_BODY = {},content: {type: 'text',- analyzer: 'standard',+ analyzer: 'content_text',},created_at_seconds: {type: 'date',