Search
Shoehorn provides full-text search across your entire platform, powered by Meilisearch. Results appear instantly as you type with typo tolerance, synonym expansion, and relevance ranking.
Using Search
Section titled “Using Search”Click the search bar or press / from any page. Results stream in as you type.
What is Searchable
Section titled “What is Searchable”Search covers 9 content types:
| Type | Searchable fields (priority order) |
|---|---|
| Entities | name, description, tags, metadata |
| Documentation | title, search terms, description, content, tags |
| Users | name, username, email, department |
| Teams | name, description, type |
| Repositories | name, full name, description, language, topics |
| Workflows | name, slug, description, tags |
| Molds | name, slug, description, language, tags |
| Doc Sites | title, description, URL |
Fields listed first have higher relevance weight. A match on an entity name ranks higher than a match in its metadata.
Search Features
Section titled “Search Features”Typo tolerance
Section titled “Typo tolerance”Search finds results even with misspellings. Words with 4+ characters tolerate 1 typo, words with 8+ characters tolerate 2 typos.
Examples:
paymntfindspaymentkuberntesfindskubernetesdeploymntfindsdeployment
Synonyms
Section titled “Synonyms”Built-in synonyms expand your queries automatically:
| You type | Also matches |
|---|---|
k8s |
kubernetes, kube |
svc |
service |
deploy |
deployment |
repo |
repository |
db |
database |
app |
application |
config |
configuration |
docker |
dockerhub |
git |
github, gitlab |
Additional synonyms are registered per content type. For example, in repositories: gh matches github, gl matches gitlab, bb matches bitbucket.
Ranking
Section titled “Ranking”Results are ranked by:
- Word match, more matched query terms rank higher
- Typo count, fewer typos rank higher
- Proximity, matched terms closer together rank higher
- Field priority, match in name ranks above match in description
- Sort, user-specified sort order (if any)
- Exactness, exact matches rank above prefix matches
- Recency, newer items get a boost
Filtering
Section titled “Filtering”Narrow results by type, lifecycle, owner, or tags using the filter panel or query parameters.
Semantic search (documentation)
Section titled “Semantic search (documentation)”Documentation search supports hybrid keyword + semantic matching. When you ask a question-like query (starting with “how”, “what”, “why”, etc.) or use 5+ words, the search engine combines keyword relevance with meaning-based vector similarity for better results.
Search API
Section titled “Search API”curl "https://shoehorn.example.com/api/v1/search?q=payment&type=service" \ -H "Authorization: Bearer <token>"Query parameters
Section titled “Query parameters”| Parameter | Description | Example |
|---|---|---|
q |
Search query | payment |
type |
Filter by content type | entity, doc, user, team, repository, workflow, mold |
owner |
Filter by team | payments-team |
lifecycle |
Filter by lifecycle | production |
tags |
Filter by tags | critical |
limit |
Results per page (default 20) | 20 |
offset |
Pagination offset | 0 |
sort_by |
Sort field | relevance, date, title, type |
Autocomplete
Section titled “Autocomplete”curl "https://shoehorn.example.com/api/v1/search/autocomplete?q=pay&limit=5" \ -H "Authorization: Bearer <token>"Autocomplete combines:
- Query completions
- Content-based suggestions
- Your recent search history
- Trending searches across the platform
Results are cached per user for 5 minutes.
Indexing
Section titled “Indexing”Entities are indexed automatically when:
- Created via API, manifest, K8s agent, or Terraform
- Updated (metadata, annotations, or enrichment changes)
- Enriched (README fetched, scorecard evaluated, entityFile applied)
The search index rebuilds automatically if it becomes stale. You can check indexing status at:
GET /api/v1/indexing/statusAccess Control
Section titled “Access Control”Two rules always apply, whatever else you configure:
- You only ever see your own tenant’s data.
- Deleted items stay hidden.
Who can find what
Section titled “Who can find what”By default, everyone in your tenant can search everything in your tenant. If a service, repository, or document is in your catalog, your colleagues can find it.
That’s usually what you want. A catalog nobody can search isn’t much of a catalog, and a private GitHub repo is still something your own engineers should be able to look up.
Restricting to owning teams
Section titled “Restricting to owning teams”If you’d rather people only find what their teams own, switch search visibility
to owner_team:
curl -X PUT https://your-shoehorn/api/v1/settings -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"search": {"visibility": "owner_team"}}'In that mode you see an item only if it’s marked public, your team owns it, or it’s been shared with you directly. Repositories follow their GitHub visibility, so private repos are limited to their owning teams.
Set it back with "visibility": "tenant".
The change takes effect on the next search. Nothing is re-indexed either way, so you can switch back and forth freely.
Upgrading from an earlier version
Section titled “Upgrading from an earlier version”Tenant-wide is the new default, and it applies when you upgrade. If you were
relying on private repositories being hard to find in search, set
visibility to owner_team after upgrading to keep the old behaviour.
One thing worth knowing if your teams have changed over time: under
owner_team, an item owned by a team that no longer exists can’t be found by
anyone, because there’s no membership left to match. Tenant-wide visibility
doesn’t have that problem.