Make parse_filter pub

This commit is contained in:
Louis Dureuil 2023-03-08 09:43:40 +01:00 committed by Tamo
parent a95128df6b
commit 745c1a2668
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69

View File

@ -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)?;