Commit Graph
2 Commits
Author SHA1 Message Date
john-okeefe 057b595832 docs: update implementation guide with technical notes
Update UNIFIED_SEARCH_IMPLEMENTATION.md with:

1. Technical note about sqlc v1.30.0 limitation:
   - CASE expressions in GROUP BY not supported
   - Solution: Use 4 separate simple queries instead of 1 complex query
   - Simpler approach that works correctly with current sqlc version

2. Implementation approach updates:
   - Service layer route to appropriate query based on field type
   - No changes needed to main.go or test helpers
   - SearchService created inside handler constructor

3. Phase 7 changes (skip):
   - No handler initialization changes needed
   - Follows FiltersService and CollectionService pattern
   - Rationale: more testable, simpler initialization

4. Updated timeline estimates
5. Updated success criteria

These notes clarify implementation decisions and provide context
for future maintainers.
2026-03-22 20:35:13 -04:00
john-okeefe aa7776db5f docs: consolidate implementation plans into unified search document
- Remove GET_SAVED_FILTER_BY_ID_IMPLEMENTATION.md (superseded)
- Remove SAVED_FILTERS_IMPLEMENTATION.md (superseded)
- Add UNIFIED_SEARCH_IMPLEMENTATION.md with comprehensive plan for:
  - Consolidating /filtered and /search endpoints
  - All-fuzzy text filters (author, series, genre, language)
  - Exact match with quotes for Google-style search
  - Field-specific fuzzy search for autocomplete dropdowns
  - Combined search + filters functionality
  - Phase-by-phase implementation with SQL, service, handler, frontend, tests, docs
2026-03-22 00:20:00 -04:00