Skip to content

Commit

Permalink
set FORCE_TEXT_SEARCH_ORIGINAL_TITLE to true by default
Browse files Browse the repository at this point in the history
  • Loading branch information
PCJones committed Feb 19, 2024
1 parent 7cfae00 commit fbfbead
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions UmlautAdaptarr/Controllers/SearchController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ namespace UmlautAdaptarr.Controllers
{
public abstract class SearchControllerBase(ProxyService proxyService, TitleMatchingService titleMatchingService) : ControllerBase
{
private readonly bool TODO_FORCE_TEXT_SEARCH_ORIGINAL_TITLE = false;
// TODO evaluate if this should be set to true by default
private readonly bool TODO_FORCE_TEXT_SEARCH_ORIGINAL_TITLE = true;
private readonly bool TODO_FORCE_TEXT_SEARCH_GERMAN_TITLE = false;
protected async Task<IActionResult> BaseSearch(string options,
string domain,
Expand Down Expand Up @@ -52,7 +53,7 @@ protected async Task<IActionResult> BaseSearch(string options,

var titleSearchVariations = new List<string>(searchItem?.TitleSearchVariations);

string searchQuery = string.Empty;
var searchQuery = string.Empty;
if (queryParameters.TryGetValue("q", out string? q))
{
searchQuery = q ?? string.Empty;
Expand Down

0 comments on commit fbfbead

Please sign in to comment.