search first iteration

This commit is contained in:
mpostma 2020-12-24 12:58:34 +01:00
parent 02ef1d41d7
commit 0cd9e62fc6
5 changed files with 329 additions and 44 deletions

View file

@ -117,11 +117,12 @@ async fn update_multiple_documents(
async fn add_documents_json(
data: web::Data<Data>,
path: web::Path<IndexParam>,
params: web::Query<UpdateDocumentsQuery>,
_params: web::Query<UpdateDocumentsQuery>,
body: Payload,
) -> Result<HttpResponse, ResponseError> {
let addition_result = data
.add_documents(
&path.index_uid,
IndexDocumentsMethod::UpdateDocuments,
UpdateFormat::Json,
body