Methods
Create
Usage
#set($searchResultResponse = $core_v2_searchResult.Create($content, $contentId, $contentType, $contentUrl, $date, $roles, $title))
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
Usage
#set($searchResultResponse = $core_v2_searchResult.Create($content, $contentId, $contentType, $contentUrl, $date, $roles, $title, "%{Collapse = $collapseArg, CreatedBy = $createdByArg, CustomFields = $customFieldsArg, EditedBy = $editedByArg, GroupId = $groupIdArg, Rating = $ratingArg, SectionId = $sectionIdArg, Tags = $tagsArg, ThreadId = $threadIdArg, UserId = $userIdArg, Username = $usernameArg, WikiId = $wikiIdArg}"))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 | | |
| Collapse | bool | Collapse | Optional | | |
| CreatedBy | string | Created By | Optional | | |
| CustomFields | List<SearchField> | Custom Fields | Optional | | |
| EditedBy | string | Edited By | Optional | | |
| GroupId | int | Group Id | Optional | | |
| Rating | double | Rating | Optional | | |
| SectionId | int | Section Id | Optional | | |
| Tags | string | Tags | Optional | | |
| ThreadId | int | Thread Id | Optional | | |
| UserId | int | User Id | Optional | | |
| Username | string | Username | Optional | | |
| WikiId | int | Wiki Id | Optional | | |
Return Type
SearchResult
Delete
Usage
#set($additionalInfoResponse = $core_v2_searchResult.Delete($id))
Parameters
| Name | Type | Description | Required | Default | Options |
|---|
| id | string | Id | Required | | |
Return Type
AdditionalInfo
Get
Get a SearchResult by Id
Usage
#set($searchResultResponse = $core_v2_searchResult.Get($id))
Parameters
| Name | Type | Description | Required | Default | Options |
|---|
| id | string | Id | Required | | |
Return Type
SearchResult
GetRelatedContent
Searches for related content
Usage
#set($searchResultsResponse = $core_v2_searchResult.GetRelatedContent($searchUniqueId))
Parameters
| Name | Type | Description | Required | Default | Options |
|---|
| searchUniqueId | string | An entity's unique search id, available as a property of entities | Required | | |
Return Type
SearchResults
GetRelatedContent
Searches for related content
Usage
#set($searchResultsResponse = $core_v2_searchResult.GetRelatedContent($searchUniqueId, "%{Filters = $filtersArg, PageIndex = $pageIndexArg, PageSize = $pageSizeArg, Sort = $sortArg}"))Parameters
| Name | Type | Description | Required | Default | Options |
|---|
| searchUniqueId | string | An entity's unique search id, available as a property of entities | Required | | |
| Filters | string | Filters. For complete documentation, please refer to telligent.com/.../search-documentation.aspx | Optional | | |
| PageIndex | int | Specify the page number of paged results to return. Zero-based index. | Optional | 0 | |
| PageSize | int | Specify the number of results to return per page. | Optional | 20 | |
| Sort | string | Sort | Optional | | date, date+asc, date+desc, titlesort, titlesort+asc, titlesort+desc |
Return Type
SearchResults
List
Perform a search with query parameters. For complete search documentation, please refer to http://telligent.com/community/developers/w/developer6/search-documentation.aspx
Usage
#set($searchResultsResponse = $core_v2_searchResult.List("%{Collapse = $collapseArg, DateRangeFacets = $dateRangeFacetsArg, DateRangeFilters = $dateRangeFiltersArg, EndDate = $endDateArg, FieldFacets = $fieldFacetsArg, FieldFilters = $fieldFiltersArg, Filters = $filtersArg, LogicalllyOrTags = $logicalllyOrTagsArg, PageIndex = $pageIndexArg, PageSize = $pageSizeArg, Query = $queryArg, Sort = $sortArg, StartDate = $startDateArg, Tags = $tagsArg}"))Parameters
| Name | Type | Description | Required | Default | Options |
|---|
| Collapse | bool | Collapse | Optional | False | |
| DateRangeFacets | string | Date Range Facets. For complete documentation, please refer to telligent.com/.../search-facets.aspx | Optional | | |
| DateRangeFilters | string | Date Range Filters. For complete documentation, please refer to telligent.com/.../search-facets.aspx | Optional | | |
| EndDate | DateTime | End Date | Optional | | |
| FieldFacets | string | Field Facets. For complete documentation, please refer to telligent.com/.../search-facets.aspx | Optional | | |
| FieldFilters | string | Field Filters. For complete documentation, please refer to telligent.com/.../search-facets.aspx | Optional | | |
| Filters | string | Filters is not required but you should use either Query or Filters otherwise you'll get all documents in the search index. | Optional | | |
| LogicalllyOrTags | bool | Whether to AND or OR tags specified in the Tags parameter. Default is False, logically AND tags. | Optional | | |
| PageIndex | int | Specify the page number of paged results to return. Zero-based index. | Optional | 0 | |
| PageSize | int | Specify the number of results to return per page. | Optional | 20 | |
| Query | string | Query is not required but you should use either Query or Filters otherwise you'll get all documents in the search index. | Optional | | |
| Sort | string | Sort | Optional | | date, date asc, date desc, titlesort, titlesort asc, titlesort desc |
| StartDate | DateTime | Start Date | Optional | | |
| Tags | string | Comma delimited list of tags. | Optional | | |
Return Type
SearchResults
Update
Usage
#set($searchResultResponse = $core_v2_searchResult.Update($id, "%{Collapse = $collapseArg, Content = $contentArg, ContentId = $contentIdArg, ContentType = $contentTypeArg, ContentUrl = $contentUrlArg, CreatedBy = $createdByArg, CustomFields = $customFieldsArg, Date = $dateArg, EditedBy = $editedByArg, GroupId = $groupIdArg, Rating = $ratingArg, Roles = $rolesArg, SectionId = $sectionIdArg, Tags = $tagsArg, ThreadId = $threadIdArg, Title = $titleArg, UserId = $userIdArg, Username = $usernameArg, WikiId = $wikiIdArg}"))Parameters
| Name | Type | Description | Required | Default | Options |
|---|
| id | string | Id | Required | | |
| Collapse | bool | Collapse | Optional | | |
| Content | string | Content | Optional | | |
| ContentId | string | Content Id | Optional | | |
| ContentType | string | Content Type | Optional | | |
| ContentUrl | string | Content Url | Optional | | |
| CreatedBy | string | Created By | Optional | | |
| CustomFields | List<SearchField> | Custom Fields | Optional | | |
| Date | DateTime | Date | Optional | | |
| EditedBy | string | Edited By | Optional | | |
| GroupId | int | Group Id | Optional | | |
| Rating | double | Rating | Optional | | |
| Roles | string | Roles | Optional | | |
| SectionId | int | Section Id | Optional | | |
| Tags | string | Tags | Optional | | |
| ThreadId | int | Thread Id | Optional | | |
| Title | string | Title | Optional | | |
| UserId | int | User Id | Optional | | |
| Username | string | Username | Optional | | |
| WikiId | int | Wiki Id | Optional | | |
Return Type
SearchResult