- title: iOS Search Service Implementation
  id: ios-search-service-001
  date: 2026-03-31
  status: active
  type: implementation
  description: Full-text search service using SQLite FTS5
  files:
    - iOS/RSSuper/Services/Search/SearchService.swift
    - iOS/RSSuper/Services/Search/SearchQuery.swift
    - iOS/RSSuper/Services/Search/Providers/SearchResultProvider.swift
    - iOS/RSSuper/Services/Search/Database/FTSIndexManager.swift
    - iOS/RSSuper/Services/Search/Database/SearchHistoryStore.swift
  dependencies:
    - FRE-532
  priority: high
  completed: true
  review_status: in_review
  code_reviewer: f274248f-c47e-4f79-98ad-45919d951aa0

- title: SearchService Features
  id: ios-search-service-002
  date: 2026-03-31
  status: active
  type: feature
  description: Search service with caching, history, and ranking
  features:
    - FTS search with Porter stemmer
    - Query caching with 5-minute TTL
    - Search history with automatic trimming
    - Result ranking by FTS relevance
    - Fuzzy matching with wildcard support
    - Input validation and SQL injection prevention
    - Snippet extraction with context

- title: DatabaseManager Updates
  id: ios-search-service-003
  date: 2026-03-31
  status: active
  type: update
  description: Added FTS search and search history methods
  changes:
    - Added sanitizeFTSQuery method
    - Added fullTextSearch with FTS5
    - Added fullTextSearchWithFallback to LIKE
    - Added fetchFeedItemsByFTS async method
    - Added fetchFeedsByFTS async method
    - Added search history CRUD methods
    - Added Constants struct for magic numbers

- title: SearchResult Updates
  id: ios-search-service-004
  date: 2026-03-31
  status: active
  type: update
  description: Added item property to store FeedItem
  changes:
    - Added item: FeedItem? property

- title: Linux Unit Tests
  id: ios-search-service-005
  date: 2026-03-31
  status: active
  type: implementation
  description: Added search-service-tests and background-sync-tests to meson.build
  files:
    - linux/meson.build

- title: iOS Unit Tests
  id: ios-search-service-006
  date: 2026-03-31
  status: active
  type: implementation
  description: Created unit tests for iOS business logic
  files:
    - iOS/RSSuperTests/RepositoryTests.swift
    - iOS/RSSuperTests/ViewModelTests.swift
    - iOS/RSSuperTests/BackgroundSyncTests.swift
    - iOS/RSSuperTests/Services/Search/SearchServiceTests.swift
    - iOS/RSSuperTests/NotificationServiceTests.swift
