Find on default search result

By default, accordions data is saved under post meta fields, unlike the post content. You may not find accordions on default search results, but we have a solution. You will need to add the following code to your theme functions.php file.

function me_search_query( $query ) {
  if ( $query->is_search ) {
    $meta_query_args = array(
      array(
        'key' => 'accordions_options',
        'value' => $query->query_vars['s'] = '',
        'compare' => 'LIKE',
      ),
    );
    $query->set('meta_query', $meta_query_args);
  };
}
add_filter( 'pre_get_posts', 'me_search_query');

Or copy the code from here.