Index: wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php
===================================================================
--- wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php	(revision 49068)
+++ wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php	(working copy)
@@ -140,7 +140,7 @@
 			);
 		}
 
-		$ids = array_map( 'absint', $result[ WP_REST_Search_Handler::RESULT_IDS ] );
+		$ids = $result[ WP_REST_Search_Handler::RESULT_IDS ];
 
 		$results = array();
 
@@ -186,7 +186,7 @@
 	 *
 	 * @since 5.0.0
 	 *
-	 * @param int             $id      ID of the item to prepare.
+	 * @param int|string $id ID of the item to prepare.
 	 * @param WP_REST_Request $request Request object.
 	 * @return WP_REST_Response Response object.
 	 */
@@ -245,7 +245,7 @@
 			'properties' => array(
 				self::PROP_ID      => array(
 					'description' => __( 'Unique identifier for the object.' ),
-					'type'        => 'integer',
+					'type'        => array( 'integer', 'string' ),
 					'context'     => array( 'view', 'embed' ),
 					'readonly'    => true,
 				),
