From bff98dfd08d6118a6b7ef2e66f16da7f5df0e043 Mon Sep 17 00:00:00 2001 From: Yan Savitski Date: Thu, 4 May 2023 21:06:09 +0200 Subject: [PATCH] [Enterprise Search][Behavioral Analytics] Update formulas (#156704) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixing formula issues for explore tables - ✔️ Remove event_type filter for location table - ✔️ Aggrate by page.url.origin for top clicked table (cherry picked from commit 75ace9c9e90e76ccc21426db437be77dd3d01c87) --- .../analytics_collection_explore_table_logic.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_explore_table_logic.ts b/x-pack/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_explore_table_logic.ts index 26d9a227eb1c0..7ab55d9bce7d9 100644 --- a/x-pack/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_explore_table_logic.ts +++ b/x-pack/plugins/enterprise_search/public/applications/analytics/components/analytics_collection_view/analytics_collection_explore_table_logic.ts @@ -187,7 +187,7 @@ const tablesParams: { requestParams: ( dataView, { timeRange, sorting, pageIndex, pageSize, search }, - aggregationFieldName = 'search.results.items.page.url' + aggregationFieldName = 'page.url.original' ) => getBaseSearchTemplate( dataView, @@ -293,7 +293,7 @@ const tablesParams: { getBaseSearchTemplate( dataView, aggregationFieldName, - { eventType: 'page_view', search, timeRange }, + { search, timeRange }, { formula: { aggs: {