Your First Search
Once you’ve indexed your content, Hoard provides powerful search capabilities. This guide covers the basics.
Basic Search
The simplest search is a keyword query:
hoard search "meeting notes"This returns chunks grouped by document:
Project NotesType: entitySource: local_filesChunk: a1b2c3d4e5f67890:2Score: 0.87"...discussed in the meeting notes from last week..."
Weekly SummaryType: entitySource: local_filesChunk: b2c3d4e5f678901:1Score: 0.82"Meeting notes for January planning session..."Memory entries can appear in the same results:
User PreferencesType: memorySource: memoryChunk: 5421d0503fadb55a413761f3745891acScore: 0.71"Prefers concise responses."Search Options
Limit Results
hoard search "query" --limit 5Search Specific Sources
hoard search "query" --source obsidianhoard search "query" --source local_filesFilter by Result Type
hoard search "query" --types entityhoard search "query" --types memoryhoard search "query" --no-memoryUnderstanding Results
Search results include:
| Field | Description |
|---|---|
result_type | entity or memory |
entity_id | Unique document or memory identifier |
entity_title | Document title or memory key |
source | Connector name or memory |
chunk_id | Specific chunk identifier (format: entity_id:index) |
content | The matching text chunk |
score | Relevance score (0-1) |
char_offset_start/end | Position in original document |
Hybrid Search
If you have vectors enabled, Hoard performs hybrid search:
- BM25 — Finds exact keyword matches
- Vector Search — Finds semantically similar content
- Reciprocal Rank Fusion — Combines both rankings
Search via MCP
When using Hoard through AI tools (Claude Code, Codex), the search tool is exposed as:
{ "name": "search", "arguments": { "query": "meeting notes", "limit": 10, "types": ["entity", "memory"] }}Example in Claude Code:
“Search my hoard for meeting notes from last week”
Getting Full Documents
To retrieve a complete document or specific chunk, use the MCP tools:
get— Returns full entity with all chunksget_chunk— Returns single chunk with optional contextmemory_get— Retrieve a memory entry by key or id
These tools are accessed via MCP (e.g., through Claude Code or Codex), not the CLI.
Search Tips
- Be specific — “January project meeting” beats “meeting”
- Use multiple terms — More terms help ranking
- Check indexed sources — Run
hoard doctorto see what’s indexed - Sync regularly — Run
hoard syncto catch new content
Troubleshooting
No Results?
- Check if content is indexed:
hoard doctor - Verify file types: Look at
include_extensionsin config - Run a sync:
hoard sync - Check the search query for typos
Results Not Relevant?
- Enable vector search for semantic matching
- Check if the content is properly chunked
- Try more specific queries
Next Steps
- Search Architecture — How hybrid search works
- Configuration — Customize search behavior
- MCP Tools — All available tools for AI agents