Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chore: use terms not query for command k search (#530)

gbirmanfcce75817a4d
diff --git a/js/app/packages/core/signal/search.ts b/js/app/packages/core/signal/search.ts
index 3df00ad0d0..de146f9118 100644
--- a/js/app/packages/core/signal/search.ts
+++ b/js/app/packages/core/signal/search.ts
@@ -46,7 +46,7 @@ export function createSearchDocumentsResource(searchTerm: () => string) {
searchClient.searchDocuments(
{
match_type: 'partial',
- query: term,
+ terms: [term],
},
{ signal }
)
@@ -101,7 +101,7 @@ export function createPaginatedEmailSearchResource(
{
request: {
match_type: 'partial',
- query: term,
+ terms: [term],
},
params: { page: pageNumber, page_size: pageSize },
},
@@ -156,7 +156,7 @@ export function createSearchChatsResource(searchTerm: () => string) {
searchClient.searchChats(
{
match_type: 'partial',
- query: term,
+ terms: [term],
},
{ signal }
)
@@ -190,7 +190,7 @@ export function createUnifiedSearchResource(
request: {
search_on: 'content',
match_type: 'partial',
- query: term,
+ terms: [term],
// in order for an index to be searched on, the key needs to exist in "filters"
filters: {
channel: {},