mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-18 17:11:15 +08:00
fix httpui
This commit is contained in:
parent
3b60432687
commit
8f43698a60
@ -382,7 +382,7 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
});
|
});
|
||||||
|
|
||||||
match result {
|
match result {
|
||||||
Ok(()) => wtxn.commit().map_err(Into::into),
|
Ok(_) => wtxn.commit().map_err(Into::into),
|
||||||
Err(e) => Err(e.into())
|
Err(e) => Err(e.into())
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -732,13 +732,13 @@ mod tests {
|
|||||||
|
|
||||||
// Set the faceted fields to be the channel.
|
// Set the faceted fields to be the channel.
|
||||||
let mut wtxn = index.write_txn().unwrap();
|
let mut wtxn = index.write_txn().unwrap();
|
||||||
let mut builder = Settings::new(&mut wtxn, &index);
|
let mut builder = Settings::new(&mut wtxn, &index, 0);
|
||||||
builder.set_searchable_fields(vec!["channel".into(), "timestamp".into()]); // to keep the fields order
|
builder.set_searchable_fields(vec!["channel".into(), "timestamp".into()]); // to keep the fields order
|
||||||
builder.set_faceted_fields(hashmap!{
|
builder.set_faceted_fields(hashmap!{
|
||||||
"channel".into() => "string".into(),
|
"channel".into() => "string".into(),
|
||||||
"timestamp".into() => "integer".into(),
|
"timestamp".into() => "integer".into(),
|
||||||
});
|
});
|
||||||
builder.execute(|_| ()).unwrap();
|
builder.execute(|_, _| ()).unwrap();
|
||||||
wtxn.commit().unwrap();
|
wtxn.commit().unwrap();
|
||||||
|
|
||||||
// Test that the facet condition is correctly generated.
|
// Test that the facet condition is correctly generated.
|
||||||
|
Loading…
Reference in New Issue
Block a user