Skip to content

Commit 0f28194

Browse files
committed
fix jaeger http endpoint
1 parent 3c18d16 commit 0f28194

File tree

1 file changed

+5
-2
lines changed
  • quickwit/quickwit-jaeger/src

1 file changed

+5
-2
lines changed

quickwit/quickwit-jaeger/src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,14 @@ impl JaegerService {
325325
if root_only {
326326
// TODO this isn't backward compatible. We could do NOT is_root:false with a lenient
327327
// UserInputQuery once we support being lenient on missing fields
328-
let term_query = TermQuery {
328+
let is_root = TermQuery {
329329
field: "is_root".to_string(),
330330
value: "true".to_string(),
331331
};
332-
query.must.push(term_query.into());
332+
let mut new_query = BoolQuery::default();
333+
new_query.must.push(query.into());
334+
new_query.must.push(is_root.into());
335+
query = new_query;
333336
}
334337

335338
let query_ast: QueryAst = query.into();

0 commit comments

Comments
 (0)