Search
This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version1.ISearchResults>()
and is defined in Telligent.Evolution.Platform.dll
Events
SearchEvents.AfterSearch
Handler
void AfterSearchEventHandler(AfterSearchEventArgs e);
SearchEvents.BeforeSearch
Handler
void BeforeSearchEventHandler(BeforeSearchEventArgs e);
Properties
Name | Type | Description | Default | Options |
---|---|---|---|---|
SearchFlags | ISearchFlags | Search flags | ||
SolrEvents | ISolrSearchEvents | Solr events |
Methods
SearchResult Create(string content, string contentId, string contentType, string contentUrl, DateTime date, string roles, string title);
Create SearchResult
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
content | string | Content | Required | ||
contentId | string | Content Id | Required | ||
contentType | string | Content Type | Required | ||
contentUrl | string | Content Url | Required | ||
date | DateTime | Date | Required | ||
roles | string | Roles | Required | ||
title | string | Title | Required |
Return Type
SearchResult Create(string content, string contentId, string contentType, string contentUrl, DateTime date, string roles, string title, SearchResultsCreateOptions options);
Create Search Result
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
content | string | Content | Required | ||
contentId | string | Content Id | Required | ||
contentType | string | Content Type | Required | ||
contentUrl | string | Content Url | Required | ||
date | DateTime | Date | Required | ||
roles | string | Roles | Required | ||
title | string | Title | Required | ||
options | SearchResultsCreateOptions | Create index entry options | Required |
Return Type
AdditionalInfo Delete(string id);
Delete SearchResult with a specific ID
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
id | string | Id | Required |
Return Type
string Encode(string queryText);
Encodes raw text to be included in search queries.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
queryText | string | Query Text | Required |
Return Type
string
SearchResult Get(string id);
Get Search Result with a specific ID
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
id | string | Id | Required |
Return Type
SearchResults GetRelatedContent(string searchUniqueId, RelatedContentListOptions options = null);
Get Related Content to a specific piece of content
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
searchUniqueId | string | An entity's unique search id, available as a property of entities | Required | ||
options | RelatedContentListOptions | Related content list options | Optional |
Return Type
SearchResults List(SearchResultsListOptions options = null);
Perform a search with query parameters.
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
options | SearchResultsListOptions | Search list options | Optional |
Return Type
SearchResult Update(string id, SearchResultsUpdateOptions options);
Update Search Result
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
id | string | Id | Required | ||
options | SearchResultsUpdateOptions | Update index entry options | Required |