requested changes

Co-authored-by: Clément Renault <clement@meilisearch.com>

Update meilisearch-http/src/routes/setting.rs

Co-authored-by: Clément Renault <clement@meilisearch.com>

Update meilisearch-schema/src/schema.rs

Update meilisearch-schema/src/schema.rs
This commit is contained in:
marin 2020-12-15 17:42:40 +01:00 committed by mpostma
parent 6d79107b14
commit e06f3808c0
3 changed files with 1 additions and 6 deletions

View File

@ -524,7 +524,7 @@ async fn delete_attributes_for_faceting(
fn get_indexed_attributes(schema: &Schema) -> Vec<String> { fn get_indexed_attributes(schema: &Schema) -> Vec<String> {
if schema.is_searchable_all() { if schema.is_searchable_all() {
["*"].iter().map(|s| s.to_string()).collect() vec!["*".to_string()]
} else { } else {
schema schema
.searchable_names() .searchable_names()

View File

@ -132,8 +132,6 @@ async fn get_dump_status_should_return_done() {
let (value, status_code) = server.trigger_dump().await; let (value, status_code) = server.trigger_dump().await;
println!("value: {:#?}", value);
assert_eq!(status_code, 202); assert_eq!(status_code, 202);
let dump_uid = value["uid"].as_str().unwrap().to_string(); let dump_uid = value["uid"].as_str().unwrap().to_string();

View File

@ -239,9 +239,6 @@ mod test {
assert_eq!(position, 0.into()); assert_eq!(position, 0.into());
} }
#[test]
fn test_insert_with_position_non_all_searchable_attributes() {}
#[test] #[test]
fn test_insert() { fn test_insert() {
let mut schema = Schema::default(); let mut schema = Schema::default();