mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Including aliases in the search query
This commit is contained in:
parent
0bdc69cb86
commit
4fa5655178
@ -71,7 +71,8 @@ namespace Kyoo.Controllers
|
|||||||
return (from show in _database.Shows from l in _database.CollectionLinks.DefaultIfEmpty()
|
return (from show in _database.Shows from l in _database.CollectionLinks.DefaultIfEmpty()
|
||||||
where l.CollectionID == null select show).AsEnumerable().Union(
|
where l.CollectionID == null select show).AsEnumerable().Union(
|
||||||
from collection in _database.Collections select collection.AsShow())
|
from collection in _database.Collections select collection.AsShow())
|
||||||
.Where(x => EF.Functions.Like(x.Title, $"%{searchQuery}%"))
|
.Where(x => EF.Functions.Like(x.Title, $"%{searchQuery}%")
|
||||||
|
|| EF.Functions.Like(x.GetAliases(), $"%{searchQuery}%"))
|
||||||
.Take(20).OrderBy(x => x.Title);
|
.Take(20).OrderBy(x => x.Title);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user