Skip to content

Remove acronymizer.db dependency and fix acronym indexing#27

Merged
kdroidFilter merged 1 commit intomasterfrom
fix/remove-acronymizer-db-dependency
Jan 13, 2026
Merged

Remove acronymizer.db dependency and fix acronym indexing#27
kdroidFilter merged 1 commit intomasterfrom
fix/remove-acronymizer-db-dependency

Conversation

@kdroidFilter
Copy link
Owner

Summary

  • Fix acronym search by sanitizing acronyms before indexing in BuildLuceneIndex
  • Remove acronymizer.db from packaging pipeline (saves ~6 MB in bundle)

Changes

BuildLuceneIndex.kt

  • Apply sanitizeAcronymTerm() to acronyms before indexing
  • Ensures acronyms like "רמב״ם" are normalized to "רמבמ" in the index
  • Fixes search issues where complete acronyms returned no results

PackageArtifacts.kt

  • Remove all acronymizer.db packaging code
  • All acronym data already exists in seforim.db (book_acronym table)
  • No need for separate database file

Benefits

  • ✅ Fixes acronym search functionality
  • ✅ Eliminates data duplication
  • ✅ Reduces bundle size by ~6 MB
  • ✅ Simplifies architecture (single database)

Testing

  • ✅ Both modules compile successfully
  • ✅ Acronym search now works correctly (tested with "רמבם")

- Fix BuildLuceneIndex to sanitize acronyms before indexing
  This ensures acronyms like "רמב״ם" are normalized to "רמבמ" in the index,
  fixing search issues where complete acronyms returned no results

- Remove acronymizer.db from packaging pipeline
  All acronym data is already in seforim.db (book_acronym table), so no
  need to package a separate database. Saves ~6 MB in bundle size.
@kdroidFilter kdroidFilter merged commit d25adb8 into master Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant