EasyAlgolia

Crates.ioEasyAlgolia
lib.rsEasyAlgolia
version1.0.4
sourcesrc
created_at2024-03-15 15:41:44.943271
updated_at2024-03-16 13:59:53.143552
descriptionEasyAlgolia is a Rust crate designed for utilizing the Algolia admin client. It simplifies the process of updating and inserting documents into Algolia's search index.
homepage
repositoryhttps://github.com/iamfaiz123/EasyAlgolia
max_upload_size
id1174849
size28,766
faizal khan (iamfaiz123)

documentation

README

crate link

EasyAlgolia is a Rust crate designed for utilizing the Algolia admin client. It simplifies the process of updating and inserting documents into Algolia's search index.

Alt text

This crate is still in development

Usage

    #[tokio::main]
    async fn main() -> Result<(), EasyAlgoliaError> {
        dotenv().ok();
        let client = ClientBuilder::build_from_env()?;
        // for raw values, Object ids are provided from algolia or can be explicitly put into json document
        let data = serde_json::json!({
            "name":" Hello world ! ",
            "about":" i love rust " ,
            "objectID" : "123456"
        });

        let my_index: Index = "Test".into();
        client.put_document_async(&my_index, data).await?;
        Ok(())
}

todo

Admin API key Curd operation

Delete by Query

Get Objects from Index

Commit count: 0

cargo fmt