mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 13:10:06 +01:00
Fix the binaries that use the new optional filters
This commit is contained in:
parent
25faef67d0
commit
1c6c89f345
@ -250,8 +250,9 @@ impl Search {
|
||||
}
|
||||
|
||||
if let Some(ref filter) = self.filter {
|
||||
let condition = milli::Filter::from_str(filter)?;
|
||||
search.filter(condition);
|
||||
if let Some(condition) = milli::Filter::from_str(filter)? {
|
||||
search.filter(condition);
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(offset) = self.offset {
|
||||
|
@ -738,7 +738,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
|
||||
let filters = match query.filters.as_ref() {
|
||||
Some(condition) if !condition.trim().is_empty() => {
|
||||
Some(MilliFilter::from_str(condition).unwrap())
|
||||
MilliFilter::from_str(condition).unwrap()
|
||||
}
|
||||
_otherwise => None,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user