mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 01:46:28 +00:00 
			
		
		
		
	Analytics
This commit is contained in:
		@@ -198,6 +198,7 @@ struct Infos {
 | 
			
		||||
    experimental_limit_batched_tasks_total_size: u64,
 | 
			
		||||
    experimental_network: bool,
 | 
			
		||||
    experimental_get_task_documents_route: bool,
 | 
			
		||||
    experimental_composite_embedders: bool,
 | 
			
		||||
    gpu_enabled: bool,
 | 
			
		||||
    db_path: bool,
 | 
			
		||||
    import_dump: bool,
 | 
			
		||||
@@ -290,6 +291,7 @@ impl Infos {
 | 
			
		||||
            contains_filter,
 | 
			
		||||
            network,
 | 
			
		||||
            get_task_documents_route,
 | 
			
		||||
            composite_embedders,
 | 
			
		||||
        } = features;
 | 
			
		||||
 | 
			
		||||
        // We're going to override every sensible information.
 | 
			
		||||
@@ -309,6 +311,7 @@ impl Infos {
 | 
			
		||||
            experimental_reduce_indexing_memory_usage,
 | 
			
		||||
            experimental_network: network,
 | 
			
		||||
            experimental_get_task_documents_route: get_task_documents_route,
 | 
			
		||||
            experimental_composite_embedders: composite_embedders,
 | 
			
		||||
            gpu_enabled: meilisearch_types::milli::vector::is_cuda_enabled(),
 | 
			
		||||
            db_path: db_path != PathBuf::from("./data.ms"),
 | 
			
		||||
            import_dump: import_dump.is_some(),
 | 
			
		||||
 
 | 
			
		||||
@@ -131,6 +131,7 @@ pub struct PatchExperimentalFeatureAnalytics {
 | 
			
		||||
    contains_filter: bool,
 | 
			
		||||
    network: bool,
 | 
			
		||||
    get_task_documents_route: bool,
 | 
			
		||||
    composite_embedders: bool,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl Aggregate for PatchExperimentalFeatureAnalytics {
 | 
			
		||||
@@ -146,6 +147,7 @@ impl Aggregate for PatchExperimentalFeatureAnalytics {
 | 
			
		||||
            contains_filter: new.contains_filter,
 | 
			
		||||
            network: new.network,
 | 
			
		||||
            get_task_documents_route: new.get_task_documents_route,
 | 
			
		||||
            composite_embedders: new.composite_embedders,
 | 
			
		||||
        })
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -170,6 +172,7 @@ impl Aggregate for PatchExperimentalFeatureAnalytics {
 | 
			
		||||
            contains_filter: Some(false),
 | 
			
		||||
            network: Some(false),
 | 
			
		||||
            get_task_documents_route: Some(false),
 | 
			
		||||
            composite_embedders: Some(false),
 | 
			
		||||
         })),
 | 
			
		||||
        (status = 401, description = "The authorization header is missing", body = ResponseError, content_type = "application/json", example = json!(
 | 
			
		||||
            {
 | 
			
		||||
@@ -234,6 +237,7 @@ async fn patch_features(
 | 
			
		||||
            contains_filter,
 | 
			
		||||
            network,
 | 
			
		||||
            get_task_documents_route,
 | 
			
		||||
            composite_embedders,
 | 
			
		||||
        },
 | 
			
		||||
        &req,
 | 
			
		||||
    );
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user