heatherleaf / heatherleaf/korpsearch
The same index for case-sensitive and -insensitive search
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
We can sort the indexes so that all case-insensitive variants of a word are in the same range, like this:
...
HÄST
HÄst
HäsT
Häst
hÄST
häsT
häst
...
If we want to search case-insensitive, we just have to sort the range, just as we do for prefix search.
This idea is taken from PGF:
https://github.com/GrammaticalFramework/gf-core/blob/c9aadf73826fc0aa32c3230632021db456c18075/src/runtime/c/pgf/text.cxx#L36
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the linked PGF implementation at src/runtime/c/pgf/text.cxx#L36, then locate korpsearch’s indexing and prefix-search entry points. Done means case-sensitive and case-insensitive searches can use the proposed shared sorted range, including the accented case variants shown in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- search
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100