mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +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