GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MDFIND(1) User Commands MDFIND(1)

mdfind - Run Spotlight searches against an SMB server

mvxattr {server} {sharename} {query} [-p, --path] [-L, --live]

This tool is part of the samba(1) suite.

mdfind is a simple utility to run Spotlight searches against an SMB server that runs the Spotlight mdssvc RPC service.

server
The SMB server name or IP address to connect to.

sharename

The name of a share on the server.

query

The query expression syntax is a simplified form of filename globbing familiar to shell users. Queries have the following format:

attribute=="value"

For queries against a Samba server with Spotlight enabled using the Elasticsearch backend, the list of supported metadata attributes is given by the JSON attribute mapping file, typically installed at /usr/share/samba/mdssvc/elasticsearch_mappings.json

-p PATH, --path=PATH

Server side path to search, defaults to "/"

-L, --live

Query remains running.

Search all indexed metadata attributes, exact match:

      '*=="Samba"'
    

Search all indexed metadata attributes, prefix match:

      '*=="Samba*"'
    

Search by filename:

      'kMDItemFSName=="Samba*"'
    

Search by date:

      'kMDItemFSContentChangeDate<$time.iso(2018-10-01T10:00:00Z)'
    

Search files's content:

      'kMDItemTextContent=="Samba*"'
    

Expressions:

      kMDItemFSName=="Samba*"||kMDItemTextContent=="Tango*"'
    

File Metadata Search Programming Guide https://developer.apple.com/library/archive/documentation/Carbon/Conceptual/SpotlightQuery/Concepts/Introduction.html

This man page is part of version 4.13.17 of the Samba suite.

The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed.

The mdfind manpage was written by Ralph Boehme.

01/31/2022 Samba 4.13.17

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.