November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
I solved this issue by replacing my filter with this:
.For(SearchQuery).Include(x=>x.SearchText().AnyWordBeginsWith(SearchQuery))
I'm trying to implement the ApplyBestBets function in my query without any success. I can add the phrase and point it to a page in edit mode but the hits does't show up when i do a search. I'm using EPiServer 6 R2. Do you have to use unified search for this to work?
My code:
Results = SearchClient.Instance.Search<PageData>()
.Filter(x => x.SearchText().AnyWordBeginsWith(SearchQuery))
.Select(x => new SearchHit
{
Title = x.PageName,
Url = PageUtility.GetFriendlyUrl(x.PageLink),
File = false,
Description = x.SearchText().Shorten(200),
Category = x.SearchSection()
})
.IncludeType<SearchHit, UnifiedFile>(x => new SearchHit
{
Title = x.Name,
Url = x.VirtualPath,
File = true,
Description = x.SearchSummary().Shorten(200),
Category = x.SearchFileExtension()
})
.Skip((PagingPage - 1) * PageSize)
.Take(PageSize).ApplyBestBets().GetResult();
Any ideas?