return the words count to calculate the ranking.

This commit is contained in:
Ben
2024-06-04 21:57:50 +08:00
parent d9d917e267
commit e1cdc7b387
4 changed files with 48 additions and 64 deletions

View File

@ -22,6 +22,8 @@ namespace Oqtane.Repository
using var db = _dbContextFactory.CreateDbContext();
var searchContentList = db.SearchContent.AsNoTracking()
.Include(i => i.Properties)
.Include(i => i.Words)
.ThenInclude(w => w.WordSource)
.Where(i => i.SiteId == searchQuery.SiteId && i.IsActive);
if (searchQuery.EntityNames != null && searchQuery.EntityNames.Any())