pub struct SearchEngineHandle { /* private fields */ }
Implementations§
source§impl SearchEngineHandle
impl SearchEngineHandle
sourcepub async fn index(&self, host: &Host, documents: impl Iterator<Item = String>)
pub async fn index(&self, host: &Host, documents: impl Iterator<Item = String>)
This spawns a new task for every request it makes. The requests are processed in parallell - this should return within the longest response duration.
sourcepub async fn index_all(&self, host: &Host)
pub async fn index_all(&self, host: &Host)
Indexes all the pages in host
.
Read this section of an article about how it fetches this.