Full-Text Search
Opening Search
Access search in multiple ways:- Keyboard Shortcut
- Command Palette
Press
Cmd+P (macOS) or Ctrl+P (Windows/Linux) to open the command palette with search.Search Behavior
When you type a search query:- Debounced: Waits 180ms after you stop typing
- Full-text: Searches note titles and content
- Ranked results: Most relevant notes appear first
- Live updates: Results refresh as you type
Search queries are case-insensitive and support partial word matching.
Search Syntax
Basic Search
Type any word or phrase:Phrase Search
Use quotes for exact phrases:Keyword Matching
Glyph tokenizes your query and searches for:- Individual terms: Each word is a search term
- Minimum length: Terms must be 2+ characters
- Stopword filtering: Common words like “the”, “a” may be filtered
Search Results
Results display:- Note title: Name of the matching note
- Snippet: Preview of matching content with highlights
- Relevance score: Higher scores appear first
- Match context: Surrounding text for context
Ranking Algorithm
Glyph uses a hybrid search algorithm combining:Keyword Overlap
- Counts how many search terms appear in the note
- Higher overlap = higher score
Trigram Similarity
- Compares character trigrams between query and content
- Handles typos and fuzzy matching
Phrase Bonus
- If the exact query phrase appears, boost the score
Title Bonus
- Notes with query terms in the title rank higher
Tags
Tag Syntax
Add tags anywhere in your notes:- Start with
# - Contain alphanumeric characters, dashes, underscores
- Not contain spaces (use
-instead:#project-alpha)
Nested Tags
Create hierarchies with/:
Frontmatter Tags
Define tags in YAML frontmatter:Tag-Based Search
Filtering by Tag
Use the tag filter in the search interface:- Open search
- Select one or more tags
- Results narrow to notes with those tags
- Optionally add a text query
Tag Autocomplete
When typing tags, Glyph suggests:- Existing tags in your space
- Tag counts (how many notes use each tag)
- Nested tag paths
Multiple Tags
Select multiple tags to find notes with all selected tags (AND logic):- Tag
#projectAND#urgent - Shows only notes containing both tags
Combined Search
Combine text search with tag filtering:- Contain the phrase “user interface”
- Have both
#projectand#drafttags
Tag Browser
View all tags in your space:
The tags list shows:
- Tag name: The full tag text
- Count: Number of notes using this tag
- Sorted: By count (most used first) or alphabetically
Advanced Search
Glyph supports advanced search parameters via the Tauri command interface:Search Options
query: Text to search fortags: Array of tags to filter bytitle_only: Search only note titlestag_only: Search only tags (no content)limit: Maximum results (default: 50)
Example Searches
- Title Only
- Combined
Search only in note titles, not content:
Indexing
Automatic Indexing
Glyph indexes your notes automatically:- On save: Every time you save a note
- On create: When you create a new note
- On delete: When you delete a note
- On rename: When you rename a note
Index Contents
The search index stores:- Note title: Filename without extension
- Note content: Full markdown text
- Tags: Both inline and frontmatter tags
- Paths: Relative path in your space
- Timestamps: Created and updated times
Rebuild Index
If search results seem outdated:Recent Notes
View recently modified notes:- Quick access to recent work
- “Continue where you left off” features
- Recent activity timeline
Performance
Search Speed
Glyph’s search is optimized for spaces with thousands of notes:- SQLite FTS5: Full-text search engine
- Indexed queries: Sub-100ms for most queries
- Candidate limiting: Fetches top 300 candidates, then ranks
- Debounced input: Reduces unnecessary queries
Scaling
Search performance characteristics:| Space Size | Index Time | Query Time |
|---|---|---|
| 100 notes | < 1s | < 10ms |
| 1,000 notes | ~5s | ~50ms |
| 10,000 notes | ~30s | ~100ms |
Troubleshooting
Search returns no results
Solutions:- Check spelling and try synonyms
- Simplify your query (use fewer words)
- Rebuild the search index
- Verify the note exists in your space
Search is slow
Solutions:- Reduce query complexity
- Use more specific search terms
- Filter by tags to narrow results
- Rebuild index if it’s corrupted
Tags not appearing
Solutions:- Ensure tags start with
# - Check for spaces (use
#tag-namenot#tag name) - Save the note (tags index on save)
- Rebuild index if needed