mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 00:55:00 +08:00
Fix the binaries that use the new optional filters
This commit is contained in:
parent
25faef67d0
commit
1c6c89f345
@ -250,9 +250,10 @@ impl Search {
|
||||
}
|
||||
|
||||
if let Some(ref filter) = self.filter {
|
||||
let condition = milli::Filter::from_str(filter)?;
|
||||
if let Some(condition) = milli::Filter::from_str(filter)? {
|
||||
search.filter(condition);
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(offset) = self.offset {
|
||||
search.offset(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…
Reference in New Issue
Block a user