Clicky

lo_t
Yes, I know it's a common issue, but here's my situation. I have a Synology DS215, indexation is active (mdutil gives an "Indexing enabled" for the volume I want to search). I also stopped and re-initialised the indexation from the Terminal. Spotlight does not see any file from the NAS, but if I do a search using the searchbox in a Finder window where the volume in question is open, files can be found (by the Finder, not by HoudahSpot).

Even launching HoudahSpot from the Finder does not help, it cannot see a single file on the drive

For information, I'm on Catalina, the NAS is connected via AFP. On the Synology KB (https://www.synology.com/en-us/knowledgebase/DSM/help/DSM/AdminCenter/file_winmacnfs_mac) it is stated "Use Finder to search within mounted folders. Spotlight on the Mac desktop can only be used to search for local files". However, I find in this discussion forum some posts about the possibility of using HoudahSpot even for remote drives in a NAS...

What else could I try? Is there any hope or possible workaround? Most of my documents are on the NAS, so both Spotlight and HoudahSpot are of very limited use as of now...

Thanks
0 0
houdah
When Synology says that Spotlight can only search local files, one needs to clarify the distinction between Spotlight the engine/index/technology and Spotlight the interface/window. The Spotlight window that you invoke by clicking the loupe in the menu bar searches only the startup disk. Spotlight indexes can exist on external drives and on network drives. Finder and HoudahSpot can search those.

Spotlight relies on importer plug-ins to read various file types to extract metadata and content. Such importers are installed with the system and with third-party applications that introduce new file formats.

Some NAS drives support remote searches via Spotlight. I don't know if these drives save an actual Spotlight index or have their own technology that is queried when the Finder on a remote Mac runs a search. Search features provided by the NAS cannot match the full capabilities of a local Spotlight index. Indeed the NAS cannot rely on specialized importers to process files. E.g. with no importer to process Pages files, the NAS cannot extract and index text content from such a file. Similarly, it is unlikely for a NAS to understand Finder tags and allow searching by tags

The Mac can also keep a local index of remote drives. I don't know when it decides to do so and when it decides against this. For this feature to work, the Mac needs a location where to save these indexes. This folder exists on some installs of MacOS and is missing on others. Check if your Mac has the /private/var/db/Spotlight-V100/Volumes/ folder. If the folder does not exist you can create it to try forcing you Mac to keep a local index for the NAS. Creating a local index of a remote volume can take a long time. Every file on the NAS needs to be read over the network so your Mac can add it to the index.
Houdah Software s. à r. l.
https://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Advanced file search utility
Tembo: Easy and effective file search
0 0
lo_t
Hi,
thanks for taking the time to answer my question. Yes, a sub-folder with the name of my drive on the NAS is present under /private/var/db/Spotlight-V100/Volumes/LocalVolumes. Its size is 142 MB
0 0
houdah
I have never heard of the "LocalVolumes" subfolder. 

I would expect the indexes to be located at the /private/var/db/Spotlight-V100/Volumes/ level
Houdah Software s. à r. l.
https://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Advanced file search utility
Tembo: Easy and effective file search
0 0
lo_t
shall I try to move the folder up a level?
0 0
houdah
You may want to try asking Synology about this.

I doubt that moving the folder will do any good. I assume that Spotlight (or maybe Synology) put it there for a reason. It is just not where I see it here. Also a Google search for "LocalVolumes" did not bring up anything of interest.
Houdah Software s. à r. l.
https://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Advanced file search utility
Tembo: Easy and effective file search
0 0