Search doesn't work for imported files

What’s The Bug?

After importing a Markdown file, searching for the text in that file does not show the imported page in the search results. There’s a closed bug for this one but it appears to be back in 0.38.0

How To Reproduce It

  1. Create a file called ‘one.md’
  2. Edit the file and insert some word, let’s say ‘fnord’
  3. Click on Space name → Import to Space → Markdown, and import ‘one.md’
  4. Click Search and enter ‘fnord’
  5. Page ‘one’ does not show in the search results, see screenshot

Image or Video

The Expected Behavior

Searching for text that is present in an imported page should show the page in the search results.

Device

Generic x86 desktop

OS

Ubuntu 22.04, reproduced on Windows 11 as well

Anytype Version

v0.38.0

Technical Information

OS version: linux x64 5.19.0-40-generic
App version: 0.38.0
Build number: build on 2024-01-23 17:45:05 +0000 UTC at #c71c64146c6e721ac39e01d450f38db5e6963f2e
Library version: v0.30.12
Anytype Identity: A9PMChN52HNGBihz8d9WADzWDWTqo4dDE2LruExHypntPWkW
Analytics ID: d17b2305-8c08-47f7-a271-330ed0a8029d
Device ID: 12D3KooWAfzTuFKcMUie8V8LWehpJGmNcEkqpRrZ6RF29UWVyiii

This report has been added to our issue tracker and received by the Development Team.

What’s The Bug?

I’m trying to move from Logseq to Anytype. I export all my notes to md files and successfully import them into Anytype. But when I try to use global search, my notes are not found. I’ve tried the stable release and 0.39.13-beta as well.

How To Reproduce It

  1. Export notes from Logseq as markdown (md) files.
  2. Import the exported md files into Anytype using the standard import process.
  3. Attempt to use the global search function in Anytype to find content from the imported notes.
  4. The global search fails to find or display any results from the imported notes, despite their successful import and visibility within Anytype.

Image or Video


The Expected Behavior

The global search should find and display results from the recently imported notes.

Additional Context

This issue persists across both the stable release and version 0.39.13-beta of Anytype.
The imported notes are visible and accessible manually within Anytype, indicating a successful import.
No error messages are displayed during or after the import process, nor during the search attempts.

It is very close to Text with changed formatting cannot be searched but with global search.

Example md file:

- Lorem ipsum dolor sit amet
	- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
	- Lorem ipsum dolor sit amet

Device

Macbook Pro M2 2022

OS

Sonoma 14.4.1

Anytype Version

0.39.13-beta

Technical Information

OS version: darwin arm64 14.4.1
App version: 0.39.13-beta
Build number: build on 2024-03-28 14:23:29 +0000 UTC at #f06837e41d50bb3e6c6f852eb008de2ca54c43eb
Library version: v0.33.0-rc5
Anytype Identity: AAMpiYTkLh2Ax2fnnu3aqoEReV9rqiLcyUk1R4b6eLAtfpkR
Analytics ID: 9ce96439-b023-4b24-8b37-5105898bd9f6
Device ID: 12D3KooWLGtsbCTq1PQaatrGgwd3HVucEc6ebGato7PHArvbgoJX

This issue has been fixed by the Development Team and will be implemented in an upcoming release.