Jump to content

Inside files search have trouble with certain non-english phrases


Recommended Posts

Posted

I was using inside files search to search for a markdown file and found something peculiar.

 

The files I was searching for has phrases like "百万医疗险"  and "保险" in it, and I could search for "百万" or "百万医疗" or "保险" and found the file.

Yet once I searched for "百万医疗险" (with the keyword "in 百万医疗险"), the file could no longer be found.

I checked with spotlight and the search worked just fine.

 

 

image.png.635e2d1ac4e446d66fb7108f462ab8db.png

image.png.0137934932a8e21f55aa415a3aab4782.png

image.thumb.png.4f4306917e8e93f3b45bf20b1f3c33ac.png

 

 

The troubleshooting diagnostics is pasted below as is.

----

Starting Diagnostics...

File: '2024-06-03 1119.md'
Path: '/Users/bytedance/Library/Mobile Documents/iCloud~md~obsidian/Documents/Personal Vault/时间戳笔记/2024'

-----------------------------------------------------------

Check file cache database...

File cache integrity is ok

-----------------------------------------------------------

Check if file is readable...

Alfred has permissions to read this file.

Unix Permissions: 420
Underlying Type: NSFileTypeRegular
Extended Attributes: (
    "com.apple.lastuseddate#PS",
    "com.apple.quarantine"
)

-----------------------------------------------------------

Check if volume '/' is indexed by macOS...

Indexing is enabled on this drive

-----------------------------------------------------------

Check direct file metadata...

Direct metadata available

Display Name: 2024-06-03 1119.md
 Other Names: 
Content Type: net.daringfireball.markdown
   Last Used: 2024-06-03 03:23:07 +0000

-----------------------------------------------------------

Check mdls file metadata...

Metadata contains required items

_kMDItemDisplayNameWithExtensions  = "2024-06-03 1119.md"
kMDItemContentCreationDate         = 2024-06-03 03:19:10 +0000
kMDItemContentCreationDate_Ranking = 2024-06-03 00:00:00 +0000
kMDItemContentModificationDate     = 2024-06-03 03:20:02 +0000
kMDItemContentType                 = "net.daringfireball.markdown"
kMDItemContentTypeTree             = (
    "net.daringfireball.markdown",
    "public.plain-text",
    "public.text",
    "public.data",
    "public.item",
    "public.content"
)
kMDItemDateAdded                   = 2024-06-03 03:19:10 +0000
kMDItemDisplayName                 = "2024-06-03 1119.md"
kMDItemDocumentIdentifier          = 191033
kMDItemFSContentChangeDate         = 2024-06-03 03:20:02 +0000
kMDItemFSCreationDate              = 2024-06-03 03:19:10 +0000
kMDItemFSCreatorCode               = ""
kMDItemFSFinderFlags               = 0
kMDItemFSHasCustomIcon             = (null)
kMDItemFSInvisible                 = 0
kMDItemFSIsExtensionHidden         = 0
kMDItemFSIsStationery              = (null)
kMDItemFSLabel                     = 0
kMDItemFSName                      = "2024-06-03 1119.md"
kMDItemFSNodeCount                 = (null)
kMDItemFSOwnerGroupID              = 20
kMDItemFSOwnerUserID               = 501
kMDItemFSSize                      = 83
kMDItemFSTypeCode                  = ""
kMDItemInterestingDate_Ranking     = 2024-06-03 00:00:00 +0000
kMDItemKind                        = "Markdown"
kMDItemLastUsedDate                = 2024-06-03 03:23:07 +0000
kMDItemLastUsedDate_Ranking        = 2024-06-03 00:00:00 +0000
kMDItemLogicalSize                 = 83
kMDItemPhysicalSize                = 4096
kMDItemUseCount                    = 5
kMDItemUsedDates                   = (
    "2024-06-02 16:00:00 +0000"
)

-----------------------------------------------------------

Check file is in search scope...

File exists within Alfred's default search scope

-----------------------------------------------------------

Check MDQuery file search...

macOS returned a match for this file in your search scope.

File Search Results for search scope (
    "[0] /System/Volumes/Data/Users/bytedance/Library/Mobile Documents/iCloud~md~obsidian/Documents/Personal Vault/\U65f6\U95f4\U6233\U7b14\U8bb0/2024/2024-06-03 1119.md"
)

File Search Results for ~/ (
    "[0] /System/Volumes/Data/Users/bytedance/Library/Mobile Documents/iCloud~md~obsidian/Documents/Personal Vault/\U65f6\U95f4\U6233\U7b14\U8bb0/2024/2024-06-03 1119.md"
)

File Search Results for / (
    "[0] /System/Volumes/Data/Users/bytedance/Library/Mobile Documents/iCloud~md~obsidian/Documents/Personal Vault/\U65f6\U95f4\U6233\U7b14\U8bb0/2024/2024-06-03 1119.md"
)

-----------------------------------------------------------

Troubleshooting passed
 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...