Library search does not match series names #15

Closed
opened 2026-04-13 15:35:18 +02:00 by arne · 0 comments
Owner

The library search input on / matches title and author name (case-insensitive substring) but not series. Typing a series name returns no results even when books in that series exist.

Source: internal/web/handler.go LibraryGet calls store.SearchBooks(q) (defined in internal/store/books.go), which JOINs only book_authors/authors. Compare store.AdminSearchBooks in internal/store/admin.go which already includes b.series LIKE ? — likely the same predicate should be added to SearchBooks.

Found while testing the htmx search migration on PR #14.

The library search input on `/` matches title and author name (case-insensitive substring) but not series. Typing a series name returns no results even when books in that series exist. Source: `internal/web/handler.go` `LibraryGet` calls `store.SearchBooks(q)` (defined in `internal/store/books.go`), which JOINs only `book_authors`/`authors`. Compare `store.AdminSearchBooks` in `internal/store/admin.go` which already includes `b.series LIKE ?` — likely the same predicate should be added to `SearchBooks`. Found while testing the htmx search migration on PR #14.
arne closed this issue 2026-04-13 15:48:24 +02:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
arne/books#15
No description provided.