pub struct Search<C: Client> {
pub http_client: Arc<C>,
pub user_agent: String,
pub endpoint: String,
pub canonical_endpoint: String,
pub auth: Auth,
pub vector_search_enabled: bool,
/* private fields */
}Fields§
§http_client: Arc<C>§user_agent: String§endpoint: String§canonical_endpoint: String§auth: Auth§vector_search_enabled: boolImplementations§
Source§impl<C: Client> Search<C>
impl<C: Client> Search<C>
pub fn new_request( &self, method: Method, path: impl Into<String>, content_type: impl Into<String>, on_behalf_of: Option<OnBehalfOfInfo>, headers: Option<HashMap<&str, &str>>, body: Option<Bytes>, ) -> Request
pub async fn execute( &self, method: Method, path: impl Into<String>, content_type: impl Into<String>, on_behalf_of: Option<OnBehalfOfInfo>, headers: Option<HashMap<&str, &str>>, body: Option<Bytes>, ) -> Result<Response>
pub async fn query(&self, opts: &QueryOptions) -> Result<SearchRespReader>
pub async fn upsert_index(&self, opts: &UpsertIndexOptions<'_>) -> Result<()>
pub async fn delete_index(&self, opts: &DeleteIndexOptions<'_>) -> Result<()>
pub async fn get_index(&self, opts: &GetIndexOptions<'_>) -> Result<Index>
pub async fn get_all_indexes( &self, opts: &GetAllIndexesOptions<'_>, ) -> Result<Vec<Index>>
pub async fn analyze_document( &self, opts: &AnalyzeDocumentOptions<'_>, ) -> Result<DocumentAnalysis>
pub async fn get_indexed_documents_count( &self, opts: &GetIndexedDocumentsCountOptions<'_>, ) -> Result<u64>
pub async fn pause_ingest(&self, opts: &PauseIngestOptions<'_>) -> Result<()>
pub async fn resume_ingest(&self, opts: &ResumeIngestOptions<'_>) -> Result<()>
pub async fn allow_querying( &self, opts: &AllowQueryingOptions<'_>, ) -> Result<()>
pub async fn disallow_querying( &self, opts: &DisallowQueryingOptions<'_>, ) -> Result<()>
pub async fn freeze_plan(&self, opts: &FreezePlanOptions<'_>) -> Result<()>
pub async fn unfreeze_plan(&self, opts: &UnfreezePlanOptions<'_>) -> Result<()>
pub async fn ping(&self, opts: &PingOptions<'_>) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for Search<C>
impl<C> RefUnwindSafe for Search<C>where
C: RefUnwindSafe,
impl<C> Send for Search<C>
impl<C> Sync for Search<C>
impl<C> Unpin for Search<C>
impl<C> UnsafeUnpin for Search<C>
impl<C> UnwindSafe for Search<C>where
C: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more