The logic in controller is simple, and I didnt found nothing, that should be the problem there:
public SearchResultModel GetSearchResults([FromQuery] string searchTerm, [FromQuery] string path, [FromQuery] int pageNumber = 1, [FromQuery] int pageSize = 5, [FromHeader(Name = LanguageHeader)] string language = "de")
{
var culture = LanguageHelper.LanguageToCultureMappingWithFallback(language);
var searchPattern = new SearchPattern($"{searchTerm} title:\"{searchTerm}\" isfeatured:(true)^0.05", SearchOptionsEnum.FullSearch);
var searchParameters = SearchParameters.PrepareForPages(searchPattern, new[] {$"Index_{culture}"}, pageNumber, pageSize, MembershipContext.AuthenticatedUser);
searchParameters.Path = path;
var searchResult = SearchHelper.Search(searchParameters);
return _mapper.Map<SearchResultModel>(searchResult);
}
text