Question: Find partial match
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 3.1k
- Forks
- 124
- PR merge metrics
- No merged PRs in 30d
Description
For example if I have notes with the words postgresql, postgres, postgreSQL and PostgresQL.
If I search for postgresql, PostgreSQL or postgresSQL I get the same matches and correct.
But if I search for postgres I expect to get the same matches but I get non of the matches from the previous search.
My expectation is that it would make a partial match since postgres e part of postgresql but looks like it makes a non case-sensitive exact match.
Is this the correct behavior or should work with partial matches?
Contributor guide
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 reproducing the reported searches in the dnote command-line tool and trace the search entry point that handles case-insensitive matching. Check how matching behavior is tested, then clarify the expected partial-match semantics and update the relevant behavior and tests so searches for the shorter term produce the agreed result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, search
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100