Class DatabaseSearchProvider
- Namespace
- Oqtane.Providers
- Assembly
- Oqtane.Server.dll
public class DatabaseSearchProvider : ISearchProvider
- Inheritance
-
DatabaseSearchProvider
- Implements
-
Constructors
DatabaseSearchProvider(ISearchContentRepository)
public DatabaseSearchProvider(ISearchContentRepository searchContentRepository)
Parameters
searchContentRepository
ISearchContentRepository
Properties
Name
public string Name { get; }
Property Value
- string
Methods
GetSearchResultsAsync(SearchQuery)
public Task<List<SearchResult>> GetSearchResultsAsync(SearchQuery searchQuery)
Parameters
searchQuery
SearchQuery
Returns
- Task<List<SearchResult>>
ResetIndex()
Returns
- Task
SaveSearchContent(SearchContent, Dictionary<string, string>)
public Task SaveSearchContent(SearchContent searchContent, Dictionary<string, string> siteSettings)
Parameters
searchContent
SearchContent
siteSettings
Dictionary<string, string>
Returns
- Task