mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-30 23:46:28 +00:00 
			
		
		
		
	Fix progress of into_changes
This commit is contained in:
		| @@ -50,7 +50,15 @@ fn test_facet_distribution_with_no_facet_values() { | ||||
|  | ||||
|     let indexer_alloc = Bump::new(); | ||||
|     let (document_changes, _operation_stats, primary_key) = indexer | ||||
|         .into_changes(&indexer_alloc, &index, &rtxn, None, &mut new_fields_ids_map, &|| false) | ||||
|         .into_changes( | ||||
|             &indexer_alloc, | ||||
|             &index, | ||||
|             &rtxn, | ||||
|             None, | ||||
|             &mut new_fields_ids_map, | ||||
|             &|| false, | ||||
|             &|_progress| (), | ||||
|         ) | ||||
|         .unwrap(); | ||||
|  | ||||
|     indexer::index( | ||||
|   | ||||
| @@ -83,7 +83,15 @@ pub fn setup_search_index_with_criteria(criteria: &[Criterion]) -> Index { | ||||
|  | ||||
|     let indexer_alloc = Bump::new(); | ||||
|     let (document_changes, operation_stats, primary_key) = indexer | ||||
|         .into_changes(&indexer_alloc, &index, &rtxn, None, &mut new_fields_ids_map, &|| false) | ||||
|         .into_changes( | ||||
|             &indexer_alloc, | ||||
|             &index, | ||||
|             &rtxn, | ||||
|             None, | ||||
|             &mut new_fields_ids_map, | ||||
|             &|| false, | ||||
|             &|_progress| (), | ||||
|         ) | ||||
|         .unwrap(); | ||||
|  | ||||
|     if let Some(error) = operation_stats.into_iter().find_map(|stat| stat.error) { | ||||
|   | ||||
| @@ -319,7 +319,15 @@ fn criteria_ascdesc() { | ||||
|     let payload = unsafe { memmap2::Mmap::map(&file).unwrap() }; | ||||
|     indexer.add_documents(&payload).unwrap(); | ||||
|     let (document_changes, _operation_stats, primary_key) = indexer | ||||
|         .into_changes(&indexer_alloc, &index, &rtxn, None, &mut new_fields_ids_map, &|| false) | ||||
|         .into_changes( | ||||
|             &indexer_alloc, | ||||
|             &index, | ||||
|             &rtxn, | ||||
|             None, | ||||
|             &mut new_fields_ids_map, | ||||
|             &|| false, | ||||
|             &|_progress| (), | ||||
|         ) | ||||
|         .unwrap(); | ||||
|  | ||||
|     indexer::index( | ||||
|   | ||||
| @@ -128,7 +128,15 @@ fn test_typo_disabled_on_word() { | ||||
|  | ||||
|     let indexer_alloc = Bump::new(); | ||||
|     let (document_changes, _operation_stats, primary_key) = indexer | ||||
|         .into_changes(&indexer_alloc, &index, &rtxn, None, &mut new_fields_ids_map, &|| false) | ||||
|         .into_changes( | ||||
|             &indexer_alloc, | ||||
|             &index, | ||||
|             &rtxn, | ||||
|             None, | ||||
|             &mut new_fields_ids_map, | ||||
|             &|| false, | ||||
|             &|_progress| (), | ||||
|         ) | ||||
|         .unwrap(); | ||||
|  | ||||
|     indexer::index( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user