macOS / binaries /

mddiagnose

/usr/bin/mddiagnose
Gather information to aid in diagnosing spotlight issues

The mddiagnose tool gathers system and Spotlight information in order to assist Apple when investigating issues related to Spotlight.

source: man