mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-30 08:44:27 +01:00
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:
parent
6d79107b14
commit
e06f3808c0
@ -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()
|
||||||
|
@ -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();
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user