rest_autocomplete_search()
…can specifically be excluded from autocomplete searches with the filter nebula_autocomplete_ignore_ids. See examples. Also, installing/activating Relevanssi will bypass the manual query logic (and therefore the need to ignore post types)….