3

This vexes me greatly. I have read of the mdutil command, but my understanding is it must be entered each time you log on, which just isn't going to work in a multi-user environment. Furthermore, if the NAS is huge, it seems to really slow down computers that are indexing.

Is there no surefire, automated solution for network users to search a NAS?

AtariBaby
  • 133
  • 1
  • 3
  • Is a slow search your main complaint? As you should be able to simply use the explorer interface (on Windows) to search for files, as you would a local drive? I do on my Synology NAS, I don't recall it being much slower? – Kram Aug 20 '15 at 16:52
  • Firstly, these all happen to be Mac environments with many users. But it's been my experience that if a NAS filled with thousands of files, searching from Mac's simply doesn't work. You can use the "mdutil" terminal command to index it, but this must be done repeatedly, and the indexing of a file-stuffed NAS makes the computer annoyingly sluggish. If one searches here and other forums, even Synology's and Apple's, one finds a handful of suggested remedies that work for some, and not others, and leave much to be desired. – AtariBaby Aug 20 '15 at 17:43

2 Answers2

2

Slow searching generally means walking the filesystem looking at each file. This is easily done over any remote filesystem protocol (SMB, AFP, NFS). Whether or not your client box's OS has an easy way to do this is a different question. Mac users who aren't very Unix savvy probably don't want to run the command-line "find" command. And generally, this kind of "walk the filesystem" searching is only appropriate for searching by filename or other metadata, not contents.

Fast searching usually requires that a process on the file server (the NAS box in this case) creates and maintains a separate database/index of file metadata (and possibly file contents keywords), so that fast searches can be executed against that database. The tricky parts of this are (1) that different fast searching solutions for different OSes have different ideas of what this index should look like, and (2) you need to make sure this database/index doesn't leak information about files that the user doing the search doesn't have access to.

So you're right, there still is no cross-platform standard for fast searching of NAS filesystems.

If you're mostly supporting Mac users, consider creating a pseudo-NAS by buying a Mac mini (US$499) running OS X Server (US$20), and hook it up to a Thunderbolt drive or Thunderbolt desktop RAID (US$250 + drives). OS X Server has facilities for maintaining a Spotlight index on the server so that your Mac clients can just use it when they connect.

Spiff
  • 101,729
  • 17
  • 175
  • 229
  • Hi. This is a great explanation and regrettably I lack the experience to upvote it, apparently. I do lament not knowing about this drawback when I migrated away from the type setup you suggest. Labor and costs will definitely prohibit that from happening. IMO a drawback of that setup is permissions problems that develop over time, with many users. – AtariBaby Sep 25 '15 at 19:08
  • @AtariBaby Since you're the asker of the question, if you find my answer to be correct (or at least acceptable, and the most acceptable of the answers you received), you can click the checkmark outline by my answer to mark it as the accepted answer, which actually gives me more imaginary Internet points than an upvote. – Spiff Sep 25 '15 at 19:38
  • Done, thank you. Didn't realize! Great nickname I might add. – AtariBaby Sep 26 '15 at 01:54
0

For Mac users I recommend Foxtrot. It's a commercial product. Once you buy enough client licenses it comes with a server indexer for free. The server indexer can run on either Mac or Windows (although setting up correct path translation for Windows can be frustrating) I have ours running on an Xserve, which has mounted an EMC Isilon via NFS (which could also be Local, AFP or SMB) The indexer has its own scheduler, where it can run periodically, user management, no integration with directory services.

The client is run on each Mac (there is no windows version) the user logs in and then performs a keyword search, if the translation paths are set correctly it will also show a preview of the document, using the standard Mac Previewer/quicklook by pointing to the file on the shared drive.

silicontrip
  • 251
  • 3
  • 8