ISearchProvider
is defined in the Telligent.Evolution.Extensibility.Content.Version1
namespace of Telligent.Evolution.Platform.dll
Definition
interface ISearchProvider : IPlugin, ISingletonPlugin { void IndexContent(IEnumerable<SearchIndexDocument> contentToIndex); SearchResults MoreLikeThis(string id, string filters, int pageSize, int pageIndex, string sort); void RemoveFromIndexById(string id); void RemoveFromIndexByQuery(SearchIndexDeleteOptions query); SearchResults Search(SearchResultsListOptions query); }
Methods
void IndexContent(IEnumerable<SearchIndexDocument> contentToIndex);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentToIndex | IEnumerable<SearchIndexDocument> | Content To Index | Required |
SearchResults MoreLikeThis(string id, string filters, int pageSize, int pageIndex, string sort);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
id | string | Id | Required | ||
filters | string | Filters | Required | ||
pageSize | int | Page Size | Required | ||
pageIndex | int | Page Index | Required | ||
sort | string | Sort | Required |
Return Type
void RemoveFromIndexById(string id);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
id | string | Id | Required |
void RemoveFromIndexByQuery(SearchIndexDeleteOptions query);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
query | SearchIndexDeleteOptions | Query | Required |
SearchResults Search(SearchResultsListOptions query);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
query | SearchResultsListOptions | Query | Required |