mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
feat(opensearch): Updated status filter field name to match index and added time-range based search (#5468)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -97,6 +97,10 @@ pub async fn msearch_results(
|
||||
};
|
||||
};
|
||||
|
||||
if let Some(time_range) = req.time_range {
|
||||
query_builder.set_time_range(time_range.into()).switch()?;
|
||||
};
|
||||
|
||||
let response_text: OpenMsearchOutput = client
|
||||
.execute(query_builder)
|
||||
.await
|
||||
@ -221,6 +225,11 @@ pub async fn search_results(
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
if let Some(time_range) = search_req.time_range {
|
||||
query_builder.set_time_range(time_range.into()).switch()?;
|
||||
};
|
||||
|
||||
query_builder
|
||||
.set_offset_n_count(search_req.offset, search_req.count)
|
||||
.switch()?;
|
||||
|
||||
Reference in New Issue
Block a user