- https://github.com/LemmyNet/lemmy-ui/issues/756
let searcher = fuzzy_search(&search_term);
query = query
.filter(community::name.ilike(searcher.to_owned()))
- .or_filter(community::title.ilike(searcher.to_owned()))
- .or_filter(community::description.ilike(searcher));
+ .or_filter(community::title.ilike(searcher));
};
match self.sort.unwrap_or(SortType::Hot) {
.into_boxed();
if let Some(search_term) = self.search_term {
- query = query.filter(person::name.ilike(fuzzy_search(&search_term)));
+ let searcher = fuzzy_search(&search_term);
+ query = query
+ .filter(person::name.ilike(searcher.to_owned()))
+ .or_filter(person::display_name.ilike(searcher));
}
query = match self.sort.unwrap_or(SortType::Hot) {