Skip to content

Commit

Permalink
Search query now also takes tags into consideration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Seikilos authored and Samuel committed Sep 22, 2018
1 parent 1d7c2ab commit 6e1d720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Emby.Server.Implementations/Data/SqliteItemRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2579,7 +2579,7 @@ private string[] GetFinalColumnsToSelect(InternalItemsQuery query, string[] star

if (query.SearchTerm.Length > 1)
{
builder.Append("+ ((CleanName like @SearchTermContains or (OriginalTitle not null and OriginalTitle like @SearchTermContains)) * 10)");
builder.Append("+ ((CleanName like @SearchTermContains or Tags like @SearchTermContains or (OriginalTitle not null and OriginalTitle like @SearchTermContains)) * 10)");
}

builder.Append(") as SearchScore");
Expand Down

0 comments on commit 6e1d720

Please sign in to comment.