mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
implement get index meta
This commit is contained in:
parent
8d462afb79
commit
f1c09a54be
4 changed files with 26 additions and 12 deletions
|
@ -83,15 +83,6 @@ async fn get_all_documents(
|
|||
todo!()
|
||||
}
|
||||
|
||||
//fn find_primary_key(document: &IndexMap<String, Value>) -> Option<String> {
|
||||
//for key in document.keys() {
|
||||
//if key.to_lowercase().contains("id") {
|
||||
//return Some(key.to_string());
|
||||
//}
|
||||
//}
|
||||
//None
|
||||
//}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
#[serde(rename_all = "camelCase", deny_unknown_fields)]
|
||||
struct UpdateDocumentsQuery {
|
||||
|
@ -150,6 +141,7 @@ async fn add_documents_default(
|
|||
_params: web::Query<UpdateDocumentsQuery>,
|
||||
_body: web::Json<Vec<Document>>,
|
||||
) -> Result<HttpResponse, ResponseError> {
|
||||
error!("Unknown document type");
|
||||
todo!()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue