iOS: Pages created before a recent app update are missing from search results

未关闭
#1,489 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
ios
领域
mobile

调研方向

Start by reproducing the issue in the iOS app using pages created before the update, then compare results in the keyboard-toolbar search and the search page. No source files or tests are identified in the issue, so locate the search entry points first. Done means pre-update pages appear from the first typed character, including one- and two-character titles and partial matches among similarly named pages.

由索引模型根据 Issue 内容生成。

描述

Search first
  • I searched and no similar issues were found
What Happened?

Pages created before the update sometimes cannot be found.

  • When searching with [[]] on the keyboard toolbar:
    • Pages with a one-character title cannot be found.
    • Pages with a two-character title cannot be found.
    • For pages with a title of three or more characters, the search does not start until the third character is typed.
    • When multiple pages start with the same word, some of them cannot be found by a partial search.
  • When searching on the search page:
    • Same as above.

PS. Pages newly created on 2.0.2 (42) can be found.

Reproduce the Bug
Pages with a one-character title cannot be found
  • Before the update, create a page titled 桃 (Peach).
  • After the update, search for 桃.
  • The page is not found.
Pages with a two-character title cannot be found
  • Before the update, create a page titled 日本 (Japan).
  • After the update, search for 日本.
  • The page is not found.
For pages with a title of three or more characters, the search does not start until the third character is typed
  • Before the update, create a page titled 地雷グリコ (the title of a Japanese mystery novel).
  • After the update, search for it:
    • 地 alone does not find this page.
    • 地雷 alone does not find this page.
    • 地雷グ finds this page.
When multiple pages start with the same word, some of them cannot be found by a partial search

I created the following pages before the update:

  • Logseq
  • Logseq iOS
  • Logseq macOS
  • Logseq Native iOS

In my case, searching for Logseq finds:

  • Logseq
  • Logseq iOS
  • Logseq macOS

but does not find Logseq Native iOS.

Typing as far as Logseq Nat finds Logseq Native iOS.

Expected Behavior

As soon as the first character is typed, pages created before the update also appear in the search results.

Screenshots

https://github.com/user-attachments/assets/f5223d51-a827-4e14-b5d0-3c25a9221be7

Files

No response

Browser, Desktop or Mobile Platform Information
  • iOS 27.2, Logseq 2.0.2 (42)
Additional Context

Japanese and Chinese in particular have many one- and two-character words, so not being able to search for these words is inconvenient.
My Logseq has 93 pages with two-character titles.

Are you willing to submit a PR? If you know how to fix the bug.
  • I'm willing to submit a PR (Thank you!)
主要语言
没有语言数据
星标
29
派生
2
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

logseq/db-test 的其他 Issue

查看 logseq/db-test 的全部 Issue

相似的 Issue

更多 Mobile Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。