mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 20:15:07 +08:00
Make parse_filter pub
This commit is contained in:
parent
a95128df6b
commit
745c1a2668
@ -745,7 +745,7 @@ fn format_value<A: AsRef<[u8]>>(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn parse_filter(facets: &Value) -> Result<Option<Filter>, MeilisearchHttpError> {
|
pub(crate) fn parse_filter(facets: &Value) -> Result<Option<Filter>, MeilisearchHttpError> {
|
||||||
match facets {
|
match facets {
|
||||||
Value::String(expr) => {
|
Value::String(expr) => {
|
||||||
let condition = Filter::from_str(expr)?;
|
let condition = Filter::from_str(expr)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user