From d5065ffc09a72108d34f46a383c156c9e19c472c Mon Sep 17 00:00:00 2001 From: Shimiao Date: Wed, 28 Sep 2022 11:27:50 -0600 Subject: [PATCH] chore: fix indentation --- dashboard_utils.R | 36 ++++++++++++++++++------------------ search_bar_module.R | 2 +- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/dashboard_utils.R b/dashboard_utils.R index 24012c0..bf450e4 100644 --- a/dashboard_utils.R +++ b/dashboard_utils.R @@ -133,26 +133,26 @@ search_body <- function(query, fields_str = paste0('"', search_fields, '"', collapse = ", ") filter_str = glue::glue(' - "bool": { - "must": [ - { - "range": { - "date": { - "gte": "<{min_date}>", - "lte": "<{max_date}>" - } - } - }, - { - "range": { - "sentiment_polarity": { - "gte": "<{min_sentiment}>", - "lte": "<{max_sentiment}>" - } - } + "bool": { + "must": [ + { + "range": { + "date": { + "gte": "<{min_date}>", + "lte": "<{max_date}>" } - ] + } + }, + { + "range": { + "sentiment_polarity": { + "gte": "<{min_sentiment}>", + "lte": "<{max_sentiment}>" + } + } } + ] + } ', .open = "<{", .close = "}>") if (use_embedding_search) { diff --git a/search_bar_module.R b/search_bar_module.R index 3562384..b656762 100644 --- a/search_bar_module.R +++ b/search_bar_module.R @@ -129,7 +129,7 @@ searchBar <- function(input, output, session, }) -sentiment_stats <- reactive({ + sentiment_stats <- reactive({ stats_for_field(es_connection, data_set_info()$alias_name, "sentiment_polarity",numeric = TRUE) })