This tool is part of the samba(1) suite.
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
Search all indexed metadata attributes, exact match:
Search all indexed metadata attributes, prefix match:
Search by filename:
Search by date:
Search files's content:
File Metadata Search Programming Guide https://developer.apple.com/library/archive/documentation/Carbon/Conceptual/SpotlightQuery/Concepts/Introduction.html
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.