Skip to content

feat: whole-word keyword search - #7

Merged
Zikithezikit merged 1 commit into
mainfrom
whole-word-search
Nov 5, 2026
Merged

Zikithezikit merged 1 commit into
mainfrom
whole-word-search

Conversation

@Zikithezikit

Copy link
Copy Markdown
Owner

Keyword search used to match text inside words, which gave noisy results for short Hebrew roots: searching for the word for ornamental plantings also found "construction", "evacuation" and "neuro", and searching for "trees" also found "consultants". This adds a whole_word option to Michraz.search and a --whole-word flag to the command line that matches whole words only. Hebrew prefix letters (and, the, as, to, from, in, that) are allowed in front of the word, so the word for "flowers" still finds "the flowers" and "to the flowers". Substring matching stays the default, so nothing changes for existing callers. On live data today the ornamental search drops from 9 results to the 1 real one, and the trees search from 4 to 2. All checks pass locally with 274 tests, and the README and changelog are updated.

live whole-word runs

@Zikithezikit
Zikithezikit merged commit 06be298 into main Nov 5, 2026
6 checks passed
@Zikithezikit
Zikithezikit deleted the whole-word-search branch November 5, 2026 09:08
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