[Samba] Tweaking Spotlight

Perttu Aaltonen perttu.aaltonen at mac.com
Fri Nov 19 12:07:06 UTC 2021


I’m testing Spotlight with Elasticsearch + fscrawler on Samba 4.14 and it’s mostly working fine. But I’d like to deal with these:

1. Sometimes typing something in the Mac Finder window’s top right corner doesn’t work. Either by itself or selecting “name matches:”. In the log I see this:

[2021/11/19 11:17:08.663810,  0] ../../source3/rpc_server/mdssvc/es_mapping.c:182(es_map_sl_attr)
  es_map_sl_attr: No JSON type mapping for [kMDItemAuthorAddresses]
[2021/11/19 11:17:08.664252,  0] ../../source3/rpc_server/mdssvc/mdssvc.c:973(slrpc_open_query)
  slrpc_open_query: backend search_start failed

It might work later so it’s not always consistent. Using the same search term in the more granular search section with either “contents contains” or “name contains” works every time.

2. Searching by file name is case-sensitive. I’m not sure how and where to tweak it so Samba would return results with any case. Has anyone done this modification?


More information about the samba mailing list