mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-30 23:46:28 +00:00 
			
		
		
		
	Fully remove vector store feature
This commit is contained in:
		| @@ -56,19 +56,6 @@ impl RoFeatures { | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     pub fn check_vector(&self, disabled_action: &'static str) -> Result<()> { | ||||
|         if self.runtime.vector_store { | ||||
|             Ok(()) | ||||
|         } else { | ||||
|             Err(FeatureNotEnabledError { | ||||
|                 disabled_action, | ||||
|                 feature: "vector store", | ||||
|                 issue_link: "https://github.com/meilisearch/product/discussions/677", | ||||
|             } | ||||
|             .into()) | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     pub fn check_edit_documents_by_function(&self, disabled_action: &'static str) -> Result<()> { | ||||
|         if self.runtime.edit_documents_by_function { | ||||
|             Ok(()) | ||||
| @@ -105,17 +92,11 @@ impl FeatureData { | ||||
|         let txn = env.read_txn()?; | ||||
|         let persisted_features: RuntimeTogglableFeatures = | ||||
|             runtime_features_db.get(&txn, EXPERIMENTAL_FEATURES)?.unwrap_or_default(); | ||||
|         let InstanceTogglableFeatures { | ||||
|             metrics, | ||||
|             logs_route, | ||||
|             contains_filter, | ||||
|             disable_vector_store, | ||||
|         } = instance_features; | ||||
|         let InstanceTogglableFeatures { metrics, logs_route, contains_filter } = instance_features; | ||||
|         let runtime = Arc::new(RwLock::new(RuntimeTogglableFeatures { | ||||
|             metrics: metrics || persisted_features.metrics, | ||||
|             logs_route: logs_route || persisted_features.logs_route, | ||||
|             contains_filter: contains_filter || persisted_features.contains_filter, | ||||
|             vector_store: !disable_vector_store, | ||||
|             ..persisted_features | ||||
|         })); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user