Basic Search
Search for files by name, path, or metadata:Search query string. Supports multiple search operators and filters
Maximum number of results to return (server default configurable with
--srch-hits)Search Syntax
Text Search
Basic text matching:Multiple Terms (AND)
Phrase Search
Wildcard Search
Search Filters
Size Filters
Filter by file size:Size filter operators:
size:>10M- Larger than 10 MiBsize:<1G- Smaller than 1 GiBsize:=1024- Exactly 1024 bytes- Units:
K(KiB),M(MiB),G(GiB),T(TiB)
Date Filters
Filter by modification date:Date filter operators:
date:>2024-01-01- Modified after Jan 1, 2024date:<2024-12-31- Modified before Dec 31, 2024date:=2024-03-03- Modified on Mar 3, 2024- Format:
YYYY-MM-DDorYYYY-MM-DD HH:MM:SS
Path Filters
Search in specific paths:Restrict search to specific path prefix
Extension Filters
Filter by file extension (comma-separated list)
Tag Search
Search by metadata tags (requires indexing with-e2ts):
Artist Search
Album Search
Title Search
Genre Search
Year Search
Bitrate Search
Duration Search
Combined Queries
Combine multiple filters:Content Hash Search
Search for files by up2k content hash:Enable hash-based search mode
Array of up2k chunk hashes (URL-safe base64 encoded SHA-512)
Search Response
Successful Response
Array of matching files
Relative path from volume root
Filename
File size in bytes
Modification timestamp (Unix epoch)
Metadata tags (if indexed with
-e2ts)Recommended order for displaying tags
True if results were truncated (hit result limit)
Rate Limiting
Search implements adaptive rate limiting:- Queries taking > 0.7s incur 0.7s penalty
- Next query must wait until penalty expires
- Returns HTTP 429 if attempted too soon
Search Requirements
Indexing
Search requires file indexing to be enabled:-e2d- Enable file indexing (delete tracking)-e2s- Enable search-e2a- Enable all indexing features-e2ts- Index audio/video metadata tags
SQLite Requirement
Search requires SQLite3:Search Examples
Find Large Files
Find Recent Photos
Find High-Quality Audio
Find Music by Artist
Find Long Videos
Search Tips
Error Handling
Rate limit exceeded - wait for penalty duration before retrying
Search unavailable - SQLite not found or indexing not enabled
Server busy - indexing in progress, retry in a moment
Performance Considerations
- First search after server restart may be slow (index loading)
- Wildcard searches are slower than exact matches
- Tag searches require metadata indexing (adds overhead)
- Large result sets may be truncated (use more specific queries)
- Rate limiting prevents search abuse