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๏ƒ

bool

cancel_search(job_id: String)

String

enqueue_search(query: String, limit: int = 20)

Dictionary

poll_search(job_id: String)


Method Descriptions๏ƒ

Requests cancellation of the search job identified by job_id. Returns true when the job existed.


Starts a background search for query and returns a job id, or an empty string if the job could not be queued.


Returns status for job_id, including ok, finished, and results when complete.