Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
chore: fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Shimiao committed Sep 28, 2022
1 parent 85137f5 commit d5065ff
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions dashboard_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion search_bar_module.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

Expand Down

0 comments on commit d5065ff

Please sign in to comment.