Contact Search Service
Component Detail
Service Layer
medium complexity
mobile
0
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Performs fast in-memory text search across the cached contact set. Returns ranked results scoped to the current user's role and assignments.
contact-search-service
Sources & reasoning
Blueprint explicitly merges contact-list-search and contact-detail-edit into a single Contacts feature. Marked MUST/Phase 1 in the matrix and listed in MVP mobile screens (lines 219-220), so target_release is MVP.
-
docs/source/likeperson.md · line 112Basic search (contact og notater) | ✓ | ✓ | ✓ | ✓ | ✓ | MUST | 1
-
docs/source/likeperson.md · line 219-220Contacts list with role-specific views Contact detail, edit, and peer mentor profile screens
-
docs/source/likeperson.md · line 231Organization labels system - per-org terminology overrides fetched from backend and cached offline (currently: `contacts`, `my_contacts`, `peer_mentors`
-
docs/source/likeperson.md · line 353contacts | Contacts | Contact List & Search, Contact Detail & Edit, Caregiver & Next-of-Kin
Responsibilities
- Index cached contacts for text search
- Execute fuzzy and prefix queries
- Apply role-based filtering to results
- Rank results by relevance
- Invalidate index when Contact Store updates
Interfaces
search(query: string, roleScope: RoleScope): Contact[]
rebuildIndex(contacts: Contact[]): void
invalidate(): void