mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-15 13:58:36 +02:00
update relevant changes from master
This commit is contained in:
parent
5ecf514d28
commit
0cd8869349
16 changed files with 276 additions and 26 deletions
|
@ -1,7 +1,8 @@
|
|||
use tempdir::TempDir;
|
||||
use actix_web::http::StatusCode;
|
||||
use byte_unit::{Byte, ByteUnit};
|
||||
use serde_json::Value;
|
||||
use actix_web::http::StatusCode;
|
||||
use tempdir::TempDir;
|
||||
use urlencoding::encode;
|
||||
|
||||
use meilisearch_http::data::Data;
|
||||
use meilisearch_http::option::{Opt, IndexerOpts};
|
||||
|
@ -60,7 +61,7 @@ impl Server {
|
|||
/// Returns a view to an index. There is no guarantee that the index exists.
|
||||
pub fn index<'a>(&'a self, uid: impl AsRef<str>) -> Index<'a> {
|
||||
Index {
|
||||
uid: uid.as_ref().to_string(),
|
||||
uid: encode(uid.as_ref()),
|
||||
service: &self.service,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue