From 075d947755a9e8d27806269fcc4f4ee1b6417a40 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Wed, 6 May 2020 11:26:24 -0400 Subject: [PATCH] add missing track_total_hits for ES7 compat --- config/aggregation.json | 3 ++- lib/philomena_web/templates/stat/index.html.slime | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config/aggregation.json b/config/aggregation.json index 33e006b3..d4925ecd 100644 --- a/config/aggregation.json +++ b/config/aggregation.json @@ -17,7 +17,8 @@ } } } - } + }, + "track_total_hits": true }, "images": { "aggs": { diff --git a/lib/philomena_web/templates/stat/index.html.slime b/lib/philomena_web/templates/stat/index.html.slime index fd5a9a55..786bc55b 100644 --- a/lib/philomena_web/templates/stat/index.html.slime +++ b/lib/philomena_web/templates/stat/index.html.slime @@ -1,5 +1,3 @@ -h1 Site Statistics - elixir: img_bucket = @image_aggs["aggregations"] cmt_bucket = @comment_aggs["aggregations"]