Prompt
How do I build a search experience for employees across all company data?
Latest observation
To build a good employee search experience across all company data, think of it as one search box backed by many data sources, with strong permissions, relevance tuning, and great UX.
1) Start with the use cases
Identify what employees need to find:
- People: “Who owns billing?” / “Who works on SRE?”
- Documents: policies, specs, decks, contracts
- Messages: Slack/Teams threads, announcements
- Tickets/tasks: Jira, Asana, GitHub issues
- Knowledge: wiki pages, FAQs, runbooks
Define:
- Who can search what
- What “good results” look like
- Latency target (usually sub-second to a few seconds)
- Freshness requirements (real-time vs hourly)
2) Connect your sources
Ingest data from systems like:
- Google Drive / SharePoint / Confluence / Notion
- Slack / Teams
- Gmail / Outlook
- Jira / ServiceNow / GitHub
- HRIS / org chart / directory
For each connector:
- Pull content + metadata
- Track source, owner, timestamps, doc type, tags
- Sync incrementally, not just full reindexing
- Handle deletes and permission changes
3) Build a unified index
Create a search index that combines:
- Text fields: title, body, comments, thread text
- Metadata: author, team, source, created_at, updated_at
- Permissions: ACLs, groups, sharing rules
- Entity fields: people, projects, systems, departments
Common stack options:
- OpenSearch / Elasticsearch
- Azure AI Search
- Algolia for simpler use cases
- Vector DB + keyword search hybrid for semantic retrieval
A strong pattern is hybrid search:
- Keyword search for exact matches
- Semantic/vector search for meaning
- Combine them for better recall and relevance
4) Make permissions first-class
This is critical for employee search.
You need:
- Document-level and sometimes section-level access control
- Query-time filtering by user identity/groups
- Sync of ACL changes quickly
- Auditing of what was shown to whom
Never rely only on UI hiding—filter at retrieval time in the search backend.
5) Improve relevance
Relevance usually makes or breaks adoption.
Signals to use:
- Exact title matches
- Term proximity
- Recency
- Source trust/authority
- Popularity/clicks
- User/team affinity
- Freshness and document quality
- Personalized context (department, role, location)
Useful features:
- Synonyms: “PTO” = “vacation”, “HR” = “People Ops”
- Acronym expansion
- Typo tolerance
- Boost official sources over chats
- Penalize stale or duplicate content
6) Design a great search UI
The interface matters as much as the index.
Include:
- Single search bar with autocomplete
- Facets/filters:
- source
- date
- team
- author
- file type
- permission scope if needed
- Result snippets with highlighted terms
- Preview panes for docs/messages
- “Did you mean” and query suggestions
- Support natural language queries
For employee search specifically:
- People cards with role, team, manager, location, expertise
- Org chart navigation
- “Contact” and “related experts” actions
7) Add a knowledge layer
To help employees ask better questions:
- Build a taxonomy of teams, projects, systems, and topics
- Map aliases and abbreviations
- Extract entities from documents
- Build a people-to-topic graph from docs, tickets, and chats
This helps answer:
- “Who knows payment retries?”
- “What’s the policy for vendor onboarding?”
- “Where is the latest API spec?”
8) Measure success
Track:
- Search success rate
- Zero-result rate
- Query reformulation rate
- Click-through rate
- Time to first relevant result
- Top queries with poor outcomes
- Permission-related failures
Add feedback controls:
- “Helpful / not helpful”
- Report missing result
- Suggest better query
9) Plan for governance and security
Across company data, governance matters:
- Data retention rules
- Sensitive content handling
- PII detection/redaction where appropriate
- Encryption at rest/in transit
- Audit logging
- Admin controls for source onboarding
- Role-based access to search analytics
10) A practical architecture
A common setup:
- Connectors ingest from source systems
- Normalizer cleans and enriches content
- Permission mapper attaches ACLs/groups
- Indexer stores searchable documents
- Query service handles user auth, filters, ranking
- UI/API serves results and feedback
- Analytics loop improves relevance over time
11) Best approach by maturity
Fastest path
Use an enterprise search platform or managed search service with connectors and ACL support.
More control
Build on Elasticsearch/OpenSearch with custom connectors and a ranking layer.
Best search quality
Hybrid retrieval:
- keyword + semantic
- permission-aware filtering
- relevance tuning from usage feedback
12) Common pitfalls
- Ignoring permissions until late
- Indexing stale or duplicate content
- Too many sources without relevance tuning
- Poor metadata normalization
- No feedback loop
- Searching everything but not ranking the right thing
If you want, I can also provide:
- a reference architecture diagram,
- a MVP build plan in 30/60/90 days, or
- a recommended tech stack for your environment.