feat(search): sync entity writes to indexer

This commit is contained in:
2026-06-04 20:06:21 +08:00
parent 3fc4859e20
commit dbc5a1a28f
11 changed files with 468 additions and 70 deletions
+5
View File
@@ -632,6 +632,11 @@ func Bootstrap(env string) (*App, error) {
return nil, fmt.Errorf("search engine init failed: %w", err)
}
searchService := search.NewSearchServiceWithEngine(searchEngine, searchRepo)
conversationService.SetSearchIndexer(searchService)
messageService.SetSearchIndexer(searchService)
contactService.SetSearchIndexer(searchService)
companyService.SetSearchIndexer(searchService)
articleService.SetSearchIndexer(searchService)
// Custom attribute definition + custom filter + custom attribute value services
customAttributeDefinitionService := service.NewCustomAttributeDefinitionService(customAttributeDefinitionRepo)