dnote / dnote/dnote

Question: Find partial match

Open
#667 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.