get_var( 'SELECT COUNT(DISTINCT doc) FROM ' . $relevanssi_variables['relevanssi_table'] . ' WHERE doc != -1' ); // WPCS: unprepared SQL ok, Relevanssi table name. $terms_count = $wpdb->get_var( 'SELECT COUNT(*) FROM ' . $relevanssi_variables['relevanssi_table'] ); // WPCS: unprepared SQL ok, Relevanssi table name. $lowest_doc = $wpdb->get_var( 'SELECT doc FROM ' . $relevanssi_variables['relevanssi_table'] . ' WHERE doc > 0 ORDER BY doc ASC LIMIT 1' ); // WPCS: unprepared SQL ok, Relevanssi table name. if ( RELEVANSSI_PREMIUM ) { $user_count = $wpdb->get_var( 'SELECT COUNT(DISTINCT item) FROM ' . $relevanssi_variables['relevanssi_table'] . " WHERE type = 'user'" ); // WPCS: unprepared SQL ok, Relevanssi table name. $taxterm_count = $wpdb->get_var( 'SELECT COUNT(DISTINCT item) FROM ' . $relevanssi_variables['relevanssi_table'] . " WHERE (type != 'post' AND type != 'attachment' AND type != 'user')" ); // WPCS: unprepared SQL ok, Relevanssi table name. } ?>
' class='button button-primary' />



' . esc_html__( 'Build the index', 'relevanssi' ) . '' ); ?>

' . esc_html__( 'Index unindexed posts', 'relevanssi' ) . '' ); ?>

: 0:00:00 | :




%s

', esc_html__( "WARNING: You've chosen no post types to index. Nothing will be indexed. Choose some post types to index.", 'relevanssi' ) ); } } ?>

'0' ) ); $pt_2 = get_post_types( array( 'exclude_from_search' => false ) ); $public_types = array_merge( $pt_1, $pt_2 ); $post_types = get_post_types(); foreach ( $post_types as $type ) { if ( in_array( $type, relevanssi_get_forbidden_post_types(), true ) ) { continue; } $checked = ''; if ( in_array( $type, $index_post_types, true ) ) { $checked = 'checked="checked"'; } $label = sprintf( '%s', $type ); $excluded_from_search = __( 'yes', 'relevanssi' ); if ( in_array( $type, $public_types, true ) ) { $excluded_from_search = __( 'no', 'relevanssi' ); } $name_id = 'relevanssi_index_type_' . $type; printf( '', esc_html( $label ), esc_attr( $name_id ), esc_html( $checked ), esc_html( $excluded_from_search ) ); } ?>
%1$s%4$s
Helpful little control field This is our little secret, just for you and me

attachment', '', '' ); ?>

name, relevanssi_get_forbidden_taxonomies(), true ) ) { continue; } $checked = ''; if ( in_array( $taxonomy->name, $index_taxonomies_list, true ) ) { $checked = 'checked="checked"'; } $label = sprintf( '%s', $taxonomy->name ); $public = __( 'no', 'relevanssi' ); if ( $taxonomy->public ) { $public = __( 'yes', 'relevanssi' ); } $name_id = 'relevanssi_index_taxonomy_' . $taxonomy->name; printf( '', esc_html( $label ), esc_attr( $name_id ), esc_html( $checked ), esc_html( $public ) ); } ?>
%1$s%4$s

'; esc_html_e( "'Visible' only includes the custom fields that are visible in the user interface (with names that don't start with an underscore).", 'relevanssi' ); echo '
'; esc_html_e( "'Some' lets you choose individual custom fields to index.", 'relevanssi' ); ?>

"; esc_html_e( 'Advanced Custom Fields has lots of invisible custom fields with meta data. Selecting "all" will include lots of garbage in the index and excerpts. "Visible" is usually a better option with ACF.' ); echo '

'; } ?>
>

_sku' ); ?>

relevanssi_block_one_letter_searches', 'false' ); ?>