Skip to content

Commit

Permalink
fix(opensearch): fix empty filter array query addition in globalsearc…
Browse files Browse the repository at this point in the history
…h query (#6716)
  • Loading branch information
tsdk02 authored Dec 2, 2024
1 parent 933911e commit 063a1c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/analytics/src/opensearch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -705,9 +705,7 @@ impl OpenSearchQueryBuilder {

let should_array = self.build_auth_array();

if !bool_obj.is_empty() {
query_obj.insert("bool".to_string(), Value::Object(bool_obj));
}
query_obj.insert("bool".to_string(), Value::Object(bool_obj));

let mut sort_obj = Map::new();
sort_obj.insert(
Expand Down

0 comments on commit 063a1c6

Please sign in to comment.