search optimizations

This commit is contained in:
sbwalker
2024-07-17 13:57:47 -04:00
parent ada8809ec0
commit 71e472f330
9 changed files with 52 additions and 86 deletions

View File

@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Oqtane.Models;

View File

@ -12,7 +12,9 @@ namespace Oqtane.Models
public string Keywords { get; set; }
public List<string> EntityNames { get; set; } = new List<string>();
public string IncludeEntities { get; set; } = ""; // comma delimited entities to include
public string ExcludeEntities { get; set; } = ""; // comma delimited entities to exclude
public DateTime From { get; set; }

View File

@ -4,13 +4,6 @@ namespace Oqtane.Shared
{
public sealed class SearchUtils
{
private static readonly List<string> _systemPages;
static SearchUtils()
{
_systemPages = new List<string> { "login", "register", "profile", "404", "search" };
}
public static List<string> GetKeywords(string keywords)
{
var keywordsList = new List<string>();
@ -27,10 +20,5 @@ namespace Oqtane.Shared
return keywordsList;
}
public static bool IsSystemPage(Models.Page page)
{
return page.Path.Contains("admin") || _systemPages.Contains(page.Path);
}
}
}