private bool MatchesFilter(BaseItem item) { if (!item.NameWordsSpecified) { return false; } return MatchesPattern(item); }
private bool MatchesPattern(BaseItem item) { var matchEvaluator = new FilterMatchEvaluator(item, FilterWords); matchEvaluator.Evaluate(); return item.MatchScore > 0; }
public FilterMatchEvaluator(BaseItem item, string[] filterWords) { _item = item; _filterWords = filterWords; }