mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 01:46:28 +00:00 
			
		
		
		
	fix the bad index version on opening
This commit is contained in:
		@@ -15,7 +15,7 @@ fn test_facet_distribution_with_no_facet_values() {
 | 
			
		||||
    let path = tempfile::tempdir().unwrap();
 | 
			
		||||
    let mut options = EnvOpenOptions::new();
 | 
			
		||||
    options.map_size(10 * 1024 * 1024); // 10 MB
 | 
			
		||||
    let index = Index::new(options, &path).unwrap();
 | 
			
		||||
    let index = Index::new(options, &path, true).unwrap();
 | 
			
		||||
 | 
			
		||||
    let mut wtxn = index.write_txn().unwrap();
 | 
			
		||||
    let config = IndexerConfig::default();
 | 
			
		||||
 
 | 
			
		||||
@@ -34,7 +34,7 @@ pub fn setup_search_index_with_criteria(criteria: &[Criterion]) -> Index {
 | 
			
		||||
    let path = tempfile::tempdir().unwrap();
 | 
			
		||||
    let mut options = EnvOpenOptions::new();
 | 
			
		||||
    options.map_size(10 * 1024 * 1024); // 10 MB
 | 
			
		||||
    let index = Index::new(options, &path).unwrap();
 | 
			
		||||
    let index = Index::new(options, &path, true).unwrap();
 | 
			
		||||
 | 
			
		||||
    let mut wtxn = index.write_txn().unwrap();
 | 
			
		||||
    let config = IndexerConfig::default();
 | 
			
		||||
 
 | 
			
		||||
@@ -264,7 +264,7 @@ fn criteria_ascdesc() {
 | 
			
		||||
    let path = tempfile::tempdir().unwrap();
 | 
			
		||||
    let mut options = EnvOpenOptions::new();
 | 
			
		||||
    options.map_size(12 * 1024 * 1024); // 10 MB
 | 
			
		||||
    let index = Index::new(options, &path).unwrap();
 | 
			
		||||
    let index = Index::new(options, &path, true).unwrap();
 | 
			
		||||
 | 
			
		||||
    let mut wtxn = index.write_txn().unwrap();
 | 
			
		||||
    let config = IndexerConfig::default();
 | 
			
		||||
 
 | 
			
		||||
@@ -110,7 +110,7 @@ fn test_typo_disabled_on_word() {
 | 
			
		||||
    let tmp = tempdir().unwrap();
 | 
			
		||||
    let mut options = EnvOpenOptions::new();
 | 
			
		||||
    options.map_size(4096 * 100);
 | 
			
		||||
    let index = Index::new(options, tmp.path()).unwrap();
 | 
			
		||||
    let index = Index::new(options, tmp.path(), true).unwrap();
 | 
			
		||||
 | 
			
		||||
    let doc1: Object = from_value(json!({ "id": 1usize, "data": "zealand" })).unwrap();
 | 
			
		||||
    let doc2: Object = from_value(json!({ "id": 2usize, "data": "zearand" })).unwrap();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user