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.

fix: remove collapse on name/name_content search (#806)

Will Hutchinson1dba6716794c
diff --git a/rust/cloud-storage/opensearch_client/src/search/builder.rs b/rust/cloud-storage/opensearch_client/src/search/builder.rs
index b915c9763f..7851eee4af 100644
--- a/rust/cloud-storage/opensearch_client/src/search/builder.rs
+++ b/rust/cloud-storage/opensearch_client/src/search/builder.rs
@@ -348,11 +348,7 @@ impl<T: SearchQueryConfig> SearchQueryBuilder<T> {
let mut search_request: SearchRequestBuilder<'a> = SearchRequestBuilder::new();
// Collapse on the ID_KEY if collapse is true
- // or if we are searchign on Name or NameContent
- if self.collapse
- || self.search_on == SearchOn::Name
- || self.search_on == SearchOn::NameContent
- {
+ if self.collapse {
search_request.collapse(Collapse::new(T::ID_KEY));
}