search optimizations
This commit is contained in:
@ -1,7 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Oqtane.Models;
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user