refactoring the code.
This commit is contained in:
@ -15,6 +15,6 @@ namespace Oqtane.Services
|
||||
|
||||
bool IsIndexEnabled(int siteId);
|
||||
|
||||
int IndexDocuments(int siteId, DateTime? startTime, Action<IList<SearchDocument>> processSearchDocuments, Action<string> handleError);
|
||||
int IndexContent(int siteId, DateTime? startTime, Action<IList<SearchContent>> processSearchContent, Action<string> handleError);
|
||||
}
|
||||
}
|
||||
|
@ -11,11 +11,11 @@ namespace Oqtane.Services
|
||||
{
|
||||
string Name { get; }
|
||||
|
||||
void SaveDocument(SearchDocument document, bool autoCommit = false);
|
||||
void SaveSearchContent(SearchContent searchContent, bool autoCommit = false);
|
||||
|
||||
void DeleteDocument(string id);
|
||||
void DeleteSearchContent(string id);
|
||||
|
||||
Task<SearchResults> SearchAsync(SearchQuery searchQuery, Func<SearchDocument, SearchQuery, bool> validateFunc);
|
||||
Task<SearchResults> SearchAsync(SearchQuery searchQuery, Func<SearchContent, SearchQuery, bool> validateFunc);
|
||||
|
||||
bool Optimize();
|
||||
|
||||
|
@ -7,7 +7,7 @@ namespace Oqtane.Services
|
||||
{
|
||||
string Name { get; }
|
||||
|
||||
bool Visible(SearchDocument searchResult, SearchQuery searchQuery);
|
||||
bool Visible(SearchContent searchResult, SearchQuery searchQuery);
|
||||
|
||||
string GetUrl(SearchResult searchResult, SearchQuery searchQuery);
|
||||
}
|
||||
|
@ -7,8 +7,8 @@ using Oqtane.Models;
|
||||
|
||||
namespace Oqtane.Interfaces
|
||||
{
|
||||
public interface IModuleSearch
|
||||
public interface ISearchable
|
||||
{
|
||||
public IList<SearchDocument> GetSearchDocuments(Module module, DateTime startTime);
|
||||
public IList<SearchContent> GetSearchContentList(Module module, DateTime startTime);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user