回答:
postmetaテーブルに結合を追加し、where句を変更して、クエリのフィルタリングを解決しました。WHERE句のフィルタリングに関するヒント(正規表現の検索と置換が必要になることが多い)はcodexにあります。
add_filter( 'posts_join', 'segnalazioni_search_join' );
function segnalazioni_search_join ( $join ) {
    global $pagenow, $wpdb;
    // I want the filter only when performing a search on edit page of Custom Post Type named "segnalazioni".
    if ( is_admin() && 'edit.php' === $pagenow && 'segnalazioni' === $_GET['post_type'] && ! empty( $_GET['s'] ) ) {    
        $join .= 'LEFT JOIN ' . $wpdb->postmeta . ' ON ' . $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';
    }
    return $join;
}
add_filter( 'posts_where', 'segnalazioni_search_where' );
function segnalazioni_search_where( $where ) {
    global $pagenow, $wpdb;
    // I want the filter only when performing a search on edit page of Custom Post Type named "segnalazioni".
    if ( is_admin() && 'edit.php' === $pagenow && 'segnalazioni' === $_GET['post_type'] && ! empty( $_GET['s'] ) ) {
        $where = preg_replace(
            "/\(\s*" . $wpdb->posts . ".post_title\s+LIKE\s*(\'[^\']+\')\s*\)/",
            "(" . $wpdb->posts . ".post_title LIKE $1) OR (" . $wpdb->postmeta . ".meta_value LIKE $1)", $where );
    }
    return $where;
}
ステファノの答えは素晴らしいですが、明確な条項がありません:
function segnalazioni_search_distinct( $where ){
    global $pagenow, $wpdb;
    if ( is_admin() && $pagenow=='edit.php' && $_GET['post_type']=='segnalazioni' && $_GET['s'] != '') {
    return "DISTINCT";
    }
    return $where;
}
add_filter( 'posts_distinct', 'segnalazioni_search_distinct' );上記のコードを追加して更新すると、重複することなく動作します。
これは動作しますが、
function custom_search_query( $query ) {
    $custom_fields = array(
        // put all the meta fields you want to search for here
        "rg_first_name",
        "rg_1job_designation"
    );
    $searchterm = $query->query_vars['s'];
    // we have to remove the "s" parameter from the query, because it will prevent the posts from being found
    $query->query_vars['s'] = "";
    if ($searchterm != "") {
        $meta_query = array('relation' => 'OR');
        foreach($custom_fields as $cf) {
            array_push($meta_query, array(
                'key' => $cf,
                'value' => $searchterm,
                'compare' => 'LIKE'
            ));
        }
        $query->set("meta_query", $meta_query);
    };
}
add_filter( "pre_get_posts", "custom_search_query");if ( $query->query['post_type'] != 'your_custom_post_type' ){ return; }関数の先頭にチェックを追加すると、他の検索でこれが実行されなくなります。この回答の手法はpost_titleを検索しなくなり、追加するのは簡単ではないことに注意してください。
                    get_search_query()、さらにコールしますget_query_var( 's' )。「s」は空の文字列に設定されているため、「」の検索結果には引用符の間に常に空の値が含まれます。これを回避するこのソリューションの調整はありますか?
                    回答1: このコードを関数ファイルに追加し、カスタム投稿タイプで使用した列名を変更して追加します
function extend_admin_search( $query ) {
    // use your post type
    $post_type = 'document';
    // Use your Custom fields/column name to search for
    $custom_fields = array(
        "_file_name",
    );
    if( ! is_admin() )
        return;
    if ( $query->query['post_type'] != $post_type )
        return;
    $search_term = $query->query_vars['s'];
    // Set to empty, otherwise it won't find anything
    $query->query_vars['s'] = '';
    if ( $search_term != '' ) {
        $meta_query = array( 'relation' => 'OR' );
        foreach( $custom_fields as $custom_field ) {
            array_push( $meta_query, array(
                'key' => $custom_field,
                'value' => $search_term,
                'compare' => 'LIKE'
            ));
        }
        $query->set( 'meta_query', $meta_query );
    };
}
add_action( 'pre_get_posts', 'extend_admin_search' );回答2:推奨事項 変更なしで関数ファイルでこのコードを使用する
function cf_search_join( $join ) {
    global $wpdb;
    if ( is_search() ) {    
        $join .=' LEFT JOIN '.$wpdb->postmeta. ' ON '. $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id ';
    }
    return $join;
}
add_filter('posts_join', 'cf_search_join' );
function cf_search_where( $where ) {
    global $pagenow, $wpdb;
    if ( is_search() ) {
        $where = preg_replace(
            "/\(\s*".$wpdb->posts.".post_title\s+LIKE\s*(\'[^\']+\')\s*\)/",
            "(".$wpdb->posts.".post_title LIKE $1) OR (".$wpdb->postmeta.".meta_value LIKE $1)", $where );
    }
    return $where;
}
add_filter( 'posts_where', 'cf_search_where' );
function cf_search_distinct( $where ) {
    global $wpdb;
    if ( is_search() ) {
        return "DISTINCT";
    }
    return $where;
}
add_filter( 'posts_distinct', 'cf_search_distinct' );これは検索ではなく、個別の値による「選択」です。
functions-iworks-posts-filter.zipファイルには、meta_keyによる通常の投稿用のフィルターを追加する方法の例があります。変換は簡単だと思います。
pre_get_postsの検索のWP_Queryのmeta_queryパラメーターを変更する2つの回答のコードのバージョンは、post_titleを検索しなくなりました。:記事タイトル、またはメタ値のいずれかを検索する機能を追加することは時にこの質問を詳しく説明として、残念ながらSQLを変更することなく、WP_Queryで直接実行することはできません検索クエリ(「S」)とメタクエリ(「meta_query」)を使用して
ここでいくつかのテクニックを組み合わせて、preg_replacesとSQLの修正が多すぎることを回避する作業バージョンを取得しました(完全に回避できることを望みます)。唯一の欠点は、検索後、ページ上部の字幕テキストに「 ''の検索結果」と表示されることです。プラグインのカスタム投稿タイプのCSSでそれを非表示にしました。
/**
 * Extend custom post type search to also search meta fields
 * @param  WP_Query $query
 */
function extend_cpt_admin_search( $query ) {
  // Make sure we're in the admin area and that this is our custom post type
  if ( !is_admin() || $query->query['post_type'] != 'your_custom_post_type' ){
    return;
  }
  // Put all the meta fields you want to search for here
  $custom_fields = array(
    "your_custom_meta_field",
    "your_custom_meta_field2",
    "your_custom_meta_field3"
  );
  // The string submitted via the search form
  $searchterm = $query->query_vars['s'];
  // Set to empty, otherwise no results will be returned.
  // The one downside is that the displayed search text is empty at the top of the page.
  $query->query_vars['s'] = '';
  if ($searchterm != ""){
    // Add additional meta_query parameter to the WP_Query object.
    // Reference: https://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters
    $meta_query = array();
    foreach($custom_fields as $cf) {
      array_push($meta_query, array(
        'key' => $cf,
        'value' => $searchterm,
        'compare' => 'LIKE'
      ));
    }
    // Use an 'OR' comparison for each additional custom meta field.
    if (count($meta_query) > 1){
      $meta_query['relation'] = 'OR';
    }
    // Set the meta_query parameter
    $query->set('meta_query', $meta_query);
    // To allow the search to also return "OR" results on the post_title
    $query->set('_meta_or_title', $searchterm);
  }
}
add_action('pre_get_posts', 'extend_cpt_admin_search');
/**
 * WP_Query parameter _meta_or_title to allow searching post_title when also
 * checking searching custom meta values
 * https://wordpress.stackexchange.com/questions/78649/using-meta-query-meta-query-with-a-search-query-s
 * https://wordpress.stackexchange.com/a/178492
 * This looks a little scary, but basically it's modifying the WHERE clause in the 
 * SQL to say "[like the post_title] OR [the existing WHERE clause]"
 * @param  WP_Query $q
 */
function meta_or_title_search( $q ){
  if( $title = $q->get( '_meta_or_title' ) ){
    add_filter( 'get_meta_sql', function( $sql ) use ( $title ){
      global $wpdb;
      // Only run once:
      static $nr = 0;
      if( 0 != $nr++ ) return $sql;
      // Modified WHERE
      $sql['where'] = sprintf(
          " AND ( (%s) OR (%s) ) ",
          $wpdb->prepare( "{$wpdb->posts}.post_title LIKE '%%%s%%'", $title),
          mb_substr( $sql['where'], 5, mb_strlen( $sql['where'] ) )
      );
      return $sql;
    });
  }
}
add_action('pre_get_posts', 'meta_or_title_search');