Searching for shop orders is tricky with WooCommerce. WooCommerce blocks searching the orders. WooCommerce also keeps the order data in many different tables. Because of this complexity, the shop_order post type is not available for indexing. You can enable it by adding this to your site: add_filter( ‘option_relevanssi_index_post_types’, function( $post_types……$status_array; } Now the orders are available in the Relevanssi admin search. They are still excluded from the front end search. Relevanssi indexes very little information about the order by default. You only get the order date. WooCommerce stores the items in the order in wp_woocommerce_order_items. Some stats about the……orders: add_filter( ‘relevanssi_content_to_index’, ‘rlv_index_order_content’, 10, 2 ); function rlv_index_order_content( $content, $post ) { if ( ‘shop_order’ === $post->post_type ) { global $wpdb; // Order number. $content .= ‘ ‘ . $post->ID; // Product names. $item_names = $wpdb->get_col( $wpdb->prepare( “SELECT order_item_name FROM {$wpdb->prefix}woocommerce_order_items WHERE order_id = %d”, $post->ID ) ); $content…