implement the documents batcher

This commit is contained in:
Tamo 2021-10-25 16:41:23 +02:00 committed by marin postma
parent 1d73f484f0
commit 392ee86714
No known key found for this signature in database
GPG key ID: 6088B7721C3E39F9
4 changed files with 155 additions and 6 deletions

View file

@ -123,7 +123,7 @@ pub async fn get_all_documents(
#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase", deny_unknown_fields)]
pub struct UpdateDocumentsQuery {
primary_key: Option<String>,
pub primary_key: Option<String>,
}
pub async fn add_documents(

View file

@ -3,7 +3,7 @@ use log::debug;
use meilisearch_lib::index::{default_crop_length, SearchQuery, DEFAULT_SEARCH_LIMIT};
use meilisearch_lib::MeiliSearch;
use serde::Deserialize;
use serde_json::{json, Value};
use serde_json::Value;
use crate::analytics::Analytics;
use crate::error::ResponseError;