Bug 15380 - Spotlight: Confusion around filename beginswith OR contains (INFORMATIONAL)
Summary: Spotlight: Confusion around filename beginswith OR contains (INFORMATIONAL)
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other (show other bugs)
Version: 4.18.2
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-29 13:16 UTC by M Weber
Modified: 2023-05-29 13:57 UTC (History)
0 users

See Also:


Attachments
Picture of both filename queries in Macos Finder (125.97 KB, image/png)
2023-05-29 13:16 UTC, M Weber
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description M Weber 2023-05-29 13:16:25 UTC
Created attachment 17899 [details]
Picture of both filename queries in Macos Finder

I would like to shed a light on a behaviour that is confusing, and may well belong in Macos' bug department.

However, it may be legit to sanitize the problem on Samba's part anyways, because the query is very generic, and the expectation is clear IMO. Also the UX would'nt suffer.

## Description
The search query from Macos in the upper bar by "Name" searches for a string BEGINNING WITH the value. This is nonsensical in my opinion, as I believe the general expectation is "contains this string".

Test: The search from the more specific option works (using "contains").

## Request
I request to consider to reframe the generic search into a "contains" query.

Best regards
Manuel
Comment 1 M Weber 2023-05-29 13:18:36 UTC
Macos Ventura 13.4

I could test it on an old "High Sierra" Macos too, if needed.
Comment 2 M Weber 2023-05-29 13:31:11 UTC
Thinking it through again, I must guess that Samba may not be able to distinguish these two requests in the first place, so my demand would indeed kill some good functionality.

My bad, Sorry for that. 
You may probably close the issue.
Comment 3 M Weber 2023-05-29 13:57:57 UTC
I filed this as a bug at the Apple bug tracker.