testing search indexing of files

This commit is contained in:
sbwalker
2024-07-13 09:28:02 -04:00
parent 938eee80a9
commit c3f041dc87
6 changed files with 109 additions and 12 deletions

View File

@ -53,7 +53,7 @@ namespace Oqtane.Modules.HtmlText.Manager
{
await Task.CompletedTask;
var searchContentList = new List<SearchContent>();
var searchContents = new List<SearchContent>();
var htmltexts = _htmlText.GetHtmlTexts(pageModule.ModuleId);
if (htmltexts != null && htmltexts.Any())
@ -61,7 +61,7 @@ namespace Oqtane.Modules.HtmlText.Manager
var htmltext = htmltexts.OrderByDescending(item => item.CreatedOn).First();
if (htmltext.CreatedOn >= lastIndexedOn)
{
searchContentList.Add(new SearchContent
searchContents.Add(new SearchContent
{
Title = pageModule.Module.Title,
Description = string.Empty,
@ -72,7 +72,7 @@ namespace Oqtane.Modules.HtmlText.Manager
}
}
return searchContentList;
return searchContents;
}
public void ImportModule(Module module, string content, string version)