We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0ff3e0 commit 59a184bCopy full SHA for 59a184b
crates/analytics/src/opensearch.rs
@@ -507,12 +507,13 @@ impl OpenSearchQueryBuilder {
507
Ok(indexes
508
.iter()
509
.map(|index| {
510
- let updated_query = query.get("query")
511
- .and_then(|q| q.get("bool"))
512
- .and_then(|b| b.get("filter"))
513
- .and_then(|f| f.as_array())
514
- .map(|filters| self.replace_status_field(filters, index))
515
- .unwrap_or_default();
+ let updated_query = query
+ .get("query")
+ .and_then(|q| q.get("bool"))
+ .and_then(|b| b.get("filter"))
+ .and_then(|f| f.as_array())
+ .map(|filters| self.replace_status_field(filters, index))
516
+ .unwrap_or_default();
517
518
let mut final_query = Map::new();
519
final_query.insert("bool".to_string(), json!({ "filter": updated_query }));
0 commit comments