Spotlight is more useful when its result list stays focused on the kinds of content that actually matter on a particular Mac. The Developer result can surface tools, project items, SDK content, and other development-related matches that add noise on systems used mainly for general work.
In current macOS releases, Spotlight result controls live in System Settings under Spotlight. Apple groups those controls under sections such as Results from Apps and Results from System, and turning a result off removes that category from normal Spotlight searches.
Older releases use System Preferences → Spotlight → Search Results instead of the newer System Settings layout. Some Macs do not show a standalone Developer result at all, so if that toggle is missing there is nothing to disable for this specific category on that system.


Current macOS releases use on/off switches instead of the older Search Results checkbox list.
If Developer is not listed, current macOS on that Mac is not exposing it as a separate Spotlight result, so this exact setting cannot be changed from the Spotlight results list.
On older releases, make the same change in System Preferences → Spotlight → Search Results by clearing Developer.