mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Support filtering
This commit is contained in:
parent
5d2535032d
commit
08e096c985
3 changed files with 58 additions and 5 deletions
|
@ -130,6 +130,12 @@ pub enum PatternMatch {
|
|||
NoMatch,
|
||||
}
|
||||
|
||||
impl PatternMatch {
|
||||
pub fn matches(&self) -> bool {
|
||||
matches!(self, PatternMatch::Match)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue