SemanticAsyncSearchWorker๏
Inherits: RefCounted < Object
Background worker that runs semantic asset searches off the main thread.
Description๏
Queues asynchronous semantic search jobs through the active SemanticSearchBackend. Poll jobs with poll_search() until they finish or are cancelled.
Methods๏
cancel_search(job_id: String) |
|
enqueue_search(query: String, limit: int = 20) |
|
poll_search(job_id: String) |
Method Descriptions๏
bool cancel_search(job_id: String) ๐
Requests cancellation of the search job identified by job_id. Returns true when the job existed.
String enqueue_search(query: String, limit: int = 20) ๐
Starts a background search for query and returns a job id, or an empty string if the job could not be queued.
Dictionary poll_search(job_id: String) ๐
Returns status for job_id, including ok, finished, and results when complete.