mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Support JSON value as filters
This commit is contained in:
parent
3329248a84
commit
ee812b31c4
3 changed files with 8 additions and 7 deletions
|
@ -90,10 +90,9 @@ impl IndexScheduler {
|
|||
request.send_json(settings.clone()).map_err(into_backoff_error)
|
||||
})?;
|
||||
|
||||
// TODO support JSON Value objects
|
||||
let filter = filter
|
||||
.as_deref()
|
||||
.map(Filter::from_str)
|
||||
.as_ref()
|
||||
.map(Filter::from_json)
|
||||
.transpose()
|
||||
.map_err(|e| Error::from_milli(e, Some(uid.to_string())))?
|
||||
.flatten();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue