mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-31 16:06:31 +00:00 
			
		
		
		
	Provide more information about resulting documents on test case
This commit is contained in:
		| @@ -466,10 +466,19 @@ async fn nested_search_on_title_with_prefix_wildcard() { | ||||
|     // Wildcard should match to 'details.' attribute | ||||
|     index | ||||
|         .search( | ||||
|             json!({"q": "Captain Marvel", "attributesToSearchOn": ["*.title"]}), | ||||
|             json!({"q": "Captain Marvel", "attributesToSearchOn": ["*.title"], "attributesToRetrieve": ["id"]}), | ||||
|             |response, code| { | ||||
|                 snapshot!(code, @"200 OK"); | ||||
|                 snapshot!(response["hits"].as_array().unwrap().len(), @"2"); | ||||
|                 snapshot!(json_string!(response["hits"]), | ||||
|                     @r###" | ||||
|                 [ | ||||
|                   { | ||||
|                     "id": "3" | ||||
|                   }, | ||||
|                   { | ||||
|                     "id": "2" | ||||
|                   } | ||||
|                 ]"###); | ||||
|             }, | ||||
|         ) | ||||
|         .await; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user