fix: remove order_by from search request (#5994)

This commit is contained in:
Hengfei Yang
2025-02-17 21:48:34 +08:00
committed by GitHub
parent e2b380c83f
commit 41b6a00907
22 changed files with 191 additions and 131 deletions
+4 -2
View File
@@ -54,14 +54,16 @@ impl Context for Export {
.as_ref()
.and_then(|event_type| get_search_event_context_from_request(event_type, &query_map));
let query = search::Query {
sql: format!("select * from {}", table),
sql: format!(
"select * from {} ORDER BY {} ASC",
table, cfg.common.column_timestamp
),
from: 0,
size: 100,
quick_mode: false,
query_type: "".to_owned(),
start_time: c.start_time,
end_time: c.end_time,
sort_by: Some(format!("{} ASC", cfg.common.column_timestamp)),
track_total_hits: false,
uses_zo_fn: false,
query_fn: None,