logseq / logseq/logseq

[Search] Cannot find pages with direct search term presence in edge cases

Open
#11,187 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

search
Dominant language
Clojure
Stars
45k
Forks
2.8k
Avg merge
1d 22h
Merged PRs (30d)
105

Description

### Search first

- [X] I searched and no similar issues were found

### What Happened?

## Demo

- Search term «really issu» has no results at all, but should have
- Search term «really issu**e**» has the only one result item, but page with words «really» and «issue» hasn't been found

Logseq couldn't find exact page in graph. From my point of view this is really **serious** issue, as it is not obvious (like an app crash for example)

### Reproduce the Bug

1. Create a reference to the page with name: «this is the page and its name is very long — so long, that final words cannot be found in logseq search and this is a REALLY big issue»
2. Open search (cmdk) & try to find by search term «really issu» — no results
3. Open search (cmdk) & try to find by search term «really issue» — one result, but the page with exact match is missing

### Expected Behavior

Pages with exact words match should be found

### Screenshots

_No response_

### Desktop or Mobile Platform Information

MacOS v13.4
Logseq Desktop v0.10.8

### Additional Context

_No response_

### Are you willing to submit a PR? If you know how to fix the bug.

- [ ] I'm willing to submit a PR (Thank you!)

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

No file or test is named. Start by reproducing the issue in Logseq Desktop with the supplied long page title and search terms, then trace the search entry point and matching logic. Done means both “really issu” and “really issue” find the page containing the exact words.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure, macos
Domain
desktop, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.