diff options
| author | Ken D'Ambrosio <ken@jots.org> | 2026-06-08 19:11:51 +0000 |
|---|---|---|
| committer | Ken D'Ambrosio <ken@jots.org> | 2026-06-08 19:11:51 +0000 |
| commit | 00f63c03b7c5de68aea6a2305886bc1953a722b6 (patch) | |
| tree | 054ff2f9029ea57c50da6e823982648f8766ec98 /scripts/faces.py | |
| parent | 01f52565f460a0107679999588b73b770f01a98c (diff) | |
Add photo search with Boolean operators
- Server-side search index built from all album.json files + people.json,
cached in memory for 5 minutes. Each photo document includes filename,
album path words, title, caption, camera, date parts (year/month-name/
full date), and person names.
- Recursive-descent Boolean parser: AND (explicit or implicit between
consecutive terms), OR, NOT, with standard precedence.
- GET /search?q=... returns a photo grid (max 300 results) linking each
photo back to its album lightbox.
- Search box added to the site header; hidden on mobile.
- Results show filename, date, person names, and album path per photo.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'scripts/faces.py')
0 files changed, 0 insertions, 0 deletions
