- Added unmapped_type parameter to referenced_by_count sort
- This handles documents that don't have the field yet
- Updated ingest.py to include reference fields when indexing:
* internal_references
* internal_references_count
* referenced_by
* referenced_by_count
- Updated index mapping to include reference fields
- Documents without the field will sort as 0 (appear last)
Fixes BadRequestError: No mapping found for [referenced_by_count]
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add "Most referenced" sort option to sort by backlink count
- Backend now supports sorting by referenced_by_count field
- Search results now display reference counts as badges:
- Shows number of backlinks (videos linking to this one)
- Shows number of internal references (outbound links)
- Reference badges appear alongside transcript source badges
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>