4 Commits

Author SHA1 Message Date
595b19f7c7 Fix sorting by referenced_by_count with unmapped_type handling
- 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>
2025-11-05 11:10:56 -05:00
e998eadd79 Revert "Fix secondary transcript timestamps by indexing parts"
This reverts commit 2efe5e0c799d2a177a520506a22b7fcb037ffe47.
2025-11-05 00:57:29 -05:00
2efe5e0c79 Fix secondary transcript timestamps by indexing parts
Previously, secondary transcript parts were not being indexed
into Elasticsearch, causing the frontend to receive empty arrays
and display zero timestamps.

Changes:
- Add transcript_secondary_parts to Elasticsearch mapping
- Include secondary parts in bulk indexing actions
- Build secondary_full text from parts if not provided
- Match primary transcript structure (nested with start/duration/text)

Note: Existing data needs to be re-indexed for this fix to apply
to videos that already have secondary transcripts.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 00:54:50 -05:00
fcdc6ecb9b Initial commit 2025-11-02 01:14:36 -04:00