pub fn send_query(app: &mut AppState, query_tx: &UnboundedSender<QueryInput>)Expand description
What: Send the current query text over the search channel with a fresh id.
Inputs:
app: Mutable application state; updatesnext_query_idandlatest_query_idquery_tx: Channel to send theQueryInput
Output:
- Sends a
QueryInputwith incremented id and current text; updates ids inapp.
Details:
- The id allows correlating responses so the UI can discard stale results.
- Cache checking happens in
handle_search_resultsto avoid architectural changes.