Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
# Description This commit uses SQLite's bm25() auxiliary function to rank the relevance of full-text search results. It also moves the SQL queries into a separate header file, to make business logic easier to parse. Finally, it also boosts the relevance ranking of Cantonese terms from dictionaries like CCY/WHK/ABY. Closes #141. ## Type of change - [x] New feature (non-breaking change which adds functionality) # How Has This Been Tested? Tested on Qt 5.15.2 on Pop!_OS 22.04, macOS 12.3.1 Monterey, Windows 11. # Checklist: - [x] My code follows the style guidelines of this project (`black` for Python code, `.clang-format` in the `src/jyut-dict` directory for C++) - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have translated my user-facing strings to all currently-supported languages - [x] I have made corresponding changes to the documentation
- Loading branch information