From fc8c1d118d593e847ba25a962ec6ac2ad96c19e0 Mon Sep 17 00:00:00 2001 From: Tamo Date: Tue, 2 May 2023 21:32:56 +0200 Subject: [PATCH] fix the analytics --- meilisearch/src/analytics/segment_analytics.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meilisearch/src/analytics/segment_analytics.rs b/meilisearch/src/analytics/segment_analytics.rs index 4f02ed60c..eedf30c7c 100644 --- a/meilisearch/src/analytics/segment_analytics.rs +++ b/meilisearch/src/analytics/segment_analytics.rs @@ -949,6 +949,7 @@ pub struct DocumentsDeletionAggregator { per_document_id: bool, clear_all: bool, per_batch: bool, + per_filter: bool, } impl DocumentsDeletionAggregator { @@ -962,6 +963,7 @@ impl DocumentsDeletionAggregator { DocumentDeletionKind::PerDocumentId => ret.per_document_id = true, DocumentDeletionKind::ClearAll => ret.clear_all = true, DocumentDeletionKind::PerBatch => ret.per_batch = true, + DocumentDeletionKind::PerFilter => ret.per_batch = true, } ret @@ -981,6 +983,7 @@ impl DocumentsDeletionAggregator { self.per_document_id |= other.per_document_id; self.clear_all |= other.clear_all; self.per_batch |= other.per_batch; + self.per_filter |= other.per_filter; } pub fn into_event(self, user: &User, event_name: &str) -> Option {