Skip to content

fix(indexer): issue/PR search is case-sensitive for camelCase titles #36228 - #38853

Open
gomitrah wants to merge 2 commits into
go-gitea:mainfrom
gomitrah:gomitrah/fix-issue-search-camelcase-case-sensitivity
Open

fix(indexer): issue/PR search is case-sensitive for camelCase titles #36228#38853
gomitrah wants to merge 2 commits into
go-gitea:mainfrom
gomitrah:gomitrah/fix-issue-search-camelcase-case-sensitivity

Conversation

@gomitrah

Copy link
Copy Markdown
Contributor

Issue

Issue/PR search requires exact letter-by-letter case for camelCase-styletitles (e.g. "SomeThing", "mDNS"). A query like "something" finds nothing,while "SomeThing" or "someThing" do, because the indexer splits camelCasewords into sub-terms ("some"/"thing") before lower-casing and neverindexes the whole word.

Solution

Add CamelCaseKeepWholeFilter, which keeps the existing camelCase split(so partial search like "DNS" still finds "mDNS") but also indexes the original, un-split word. Bumped the index version to trigger a reindexon upgrade.

Fixes #36228

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 10, 2026
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Aug 12, 2026
@bircni bircni added the backport/v1.27 This PR should be backported to Gitea 1.27 label Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/v1.27 This PR should be backported to Gitea 1.27 lgtm/need 1 This PR needs approval from one additional maintainer to be merged. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue/PR search is case-sensitive

4 participants