Repository navigation
Search finds a title when a word has another ending - #48
Merged
Merged
Conversation
"I killed the bear" didn't surface "I Kill the Bear": "killed" isn't a prefix of "Kill", and each section's any-word fallback filled On TV and the library with one-word near misses (Chicago Bears games, bear films). Search now tries three levels across guide, library and episodes together (exact words, words without common endings, all-but-one of the words) and stops at the first that finds anything. An exact library title comes first. ADR 0031 (Proposed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
jpittelkow
added a commit
that referenced
this pull request
Nov 26, 2026
Version bump and CHANGELOG for 0.2.10: search finds a title when a word has another ending (#48). Also rewords one line of ADR 0031. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Jeff Pittelkow <6314033+jpittelkow@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes and why
A search for "I killed the bear" didn't surface the show "I Kill the Bear":
killed*never matches "Kill".search.runnow tries three levels, across guide, library and episodes together, and stops at the first level that finds anything:search.stem).A library title equal to the whole search comes first.
/api/libraryretries without endings when the words as typed find nothing.How it was tested
python scripts/check.pyprints "all checks passed" (tests, guard tests, privacy, JS)tests/test_core.py; all three fail onmain)CHANGELOG.md(Unreleased) updated, if a user would noticeTried on real hardware (TV model and app, or "not tried"): not tried (search only). Ran
search.runagainst a copy of a real library: the reported search now returns the show first, and several other common searches return what they did before.Not tested: the running app in a browser.
Decisions and docs
ADRs I reviewed for this area (numbers): 0015, 0029, 0030
docs/and the README still match the code, or were updated hereSecurity (tick what applies)
AI use
Checks
🤖 Generated with Claude Code