Custom post type not showing in search result

Please add exclude_from_search to false, inside your register post type function


add_action('init', 'eyewebz_create_post_types');
function eyewebz_create_post_types() {
    register_post_type('project', 
        array(  'taxonomies'            => array('category'),
                'labels'                => $labels,
                'has_archive'           => true,
                'show_in_rest'          => true,
                'hierarchical'          => true,
                'public'                => true,
                'publicly_queryable'    => true,
                'supports'              => array('title', 'editor', 'post-formats', 
                'page-attributes', 'thumbnail', 'excerpt'),
                'exclude_from_search' => false,
                'menu_icon'             => 'dashicons-index-card'
    ));

}