get_col( "SELECT post_id FROM {$readableTableName} WHERE type = 'product'" ); $doclistTableName = \DgoraWcas\Engines\TNTSearchMySQL\Indexer\Utils::getTableName( 'searchable_doclist', $lang ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared $doclistIds = $wpdb->get_col( "SELECT DISTINCT doc_id FROM {$doclistTableName}" ); $missingIds = array_diff( $readableIds, $doclistIds ); } ?>
The following products are present in the readable index but missing in the searchable index:
No missing products found. All products in the readable index are also present in the searchable index.