mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-30 23:46:28 +00:00 
			
		
		
		
	Fix the tests to use the new replace/update documents
This commit is contained in:
		| @@ -5,7 +5,7 @@ use heed::EnvOpenOptions; | ||||
| use milli::documents::mmap_from_objects; | ||||
| use milli::progress::Progress; | ||||
| use milli::update::new::indexer; | ||||
| use milli::update::{IndexDocumentsMethod, IndexerConfig, Settings}; | ||||
| use milli::update::{IndexerConfig, Settings}; | ||||
| use milli::vector::EmbeddingConfigs; | ||||
| use milli::{Criterion, Index, Object, Search, TermsMatchingStrategy}; | ||||
| use serde_json::from_value; | ||||
| @@ -123,9 +123,9 @@ fn test_typo_disabled_on_word() { | ||||
|     let db_fields_ids_map = index.fields_ids_map(&rtxn).unwrap(); | ||||
|     let mut new_fields_ids_map = db_fields_ids_map.clone(); | ||||
|     let embedders = EmbeddingConfigs::default(); | ||||
|     let mut indexer = indexer::DocumentOperation::new(IndexDocumentsMethod::ReplaceDocuments); | ||||
|     let mut indexer = indexer::DocumentOperation::new(); | ||||
|  | ||||
|     indexer.add_documents(&documents).unwrap(); | ||||
|     indexer.replace_documents(&documents).unwrap(); | ||||
|  | ||||
|     let indexer_alloc = Bump::new(); | ||||
|     let (document_changes, _operation_stats, primary_key) = indexer | ||||
|   | ||||
		Reference in New Issue
	
	Block a user