set FORCE_TEXT_SEARCH_ORIGINAL_TITLE to true by default
This commit is contained in:
@@ -8,7 +8,8 @@ namespace UmlautAdaptarr.Controllers
|
|||||||
{
|
{
|
||||||
public abstract class SearchControllerBase(ProxyService proxyService, TitleMatchingService titleMatchingService) : ControllerBase
|
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;
|
private readonly bool TODO_FORCE_TEXT_SEARCH_GERMAN_TITLE = false;
|
||||||
protected async Task<IActionResult> BaseSearch(string options,
|
protected async Task<IActionResult> BaseSearch(string options,
|
||||||
string domain,
|
string domain,
|
||||||
@@ -52,7 +53,7 @@ namespace UmlautAdaptarr.Controllers
|
|||||||
|
|
||||||
var titleSearchVariations = new List<string>(searchItem?.TitleSearchVariations);
|
var titleSearchVariations = new List<string>(searchItem?.TitleSearchVariations);
|
||||||
|
|
||||||
string searchQuery = string.Empty;
|
var searchQuery = string.Empty;
|
||||||
if (queryParameters.TryGetValue("q", out string? q))
|
if (queryParameters.TryGetValue("q", out string? q))
|
||||||
{
|
{
|
||||||
searchQuery = q ?? string.Empty;
|
searchQuery = q ?? string.Empty;
|
||||||
|
|||||||
Reference in New Issue
Block a user