Table of Contents

Class SearchService

Namespace
Oqtane.Services
Assembly
Oqtane.Server.dll
public class SearchService : ISearchService
Inheritance
object
SearchService
Implements

Constructors

SearchService(IServiceProvider, ISettingRepository, IUserPermissions, IHttpContextAccessor)

public SearchService(IServiceProvider serviceProvider, ISettingRepository settingRepository, IUserPermissions userPermissions, IHttpContextAccessor accessor)

Parameters

serviceProvider IServiceProvider
settingRepository ISettingRepository
userPermissions IUserPermissions
accessor IHttpContextAccessor

Methods

DeleteSearchContentsAsync(int)

public Task DeleteSearchContentsAsync(int siteId)

Parameters

siteId int

Returns

Task

GetSearchResultsAsync(SearchQuery)

public Task<SearchResults> GetSearchResultsAsync(SearchQuery searchQuery)

Parameters

searchQuery SearchQuery

Returns

Task<SearchResults>

SaveSearchContentsAsync(List<SearchContent>, Dictionary<string, string>)

public Task<string> SaveSearchContentsAsync(List<SearchContent> searchContents, Dictionary<string, string> siteSettings)

Parameters

searchContents List<SearchContent>
siteSettings Dictionary<string, string>

Returns

Task<string>