#4303: add search function.
This commit is contained in:
37
Oqtane.Shared/Models/SearchQuery.cs
Normal file
37
Oqtane.Shared/Models/SearchQuery.cs
Normal file
@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Oqtane.Shared;
|
||||
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class SearchQuery
|
||||
{
|
||||
public int SiteId { get; set; }
|
||||
|
||||
public Alias Alias { get; set; }
|
||||
|
||||
public User User { get; set; }
|
||||
|
||||
public string Keywords { get; set; }
|
||||
|
||||
public IList<string> Sources { get; set; } = new List<string>();
|
||||
|
||||
public DateTime BeginModifiedTimeUtc { get; set; }
|
||||
|
||||
public DateTime EndModifiedTimeUtc { get; set; }
|
||||
|
||||
public IList<string> Tags { get; set; } = new List<string>();
|
||||
|
||||
public IDictionary<string, string> Properties { get; set; } = new Dictionary<string, string>();
|
||||
|
||||
public int PageIndex { get; set; }
|
||||
|
||||
public int PageSize { get; set; }
|
||||
|
||||
public SearchSortFields SortField { get; set; }
|
||||
|
||||
public SearchSortDirections SortDirection { get; set; }
|
||||
|
||||
public int BodySnippetLength { get; set;} = 255;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user