search
Function
Function Name | Description | Level |
search | advanced search in tapatalk | 4 |
Input Parameters:
Name | Type | Required? | Description | Level |
[search filter] | Array of Hash table | yes | This function accept a few search filters as below.
Only one hash parameter was needed and the filter key must be specified.
Filter keys order do not required. | 4 |
searchid | String | | For pagenation feature. If this key was specified, all below keys will be ignored, except 'page' and 'perpage' | 4 |
page | Int | | The page number of search result you need.
Default will return page 1 | 4 |
perpage | Int | | Topic/Posts perpage.
Default is 20. | 4 |
keywords | byte[] | | The key words we want to search. | 4 |
userid | String | | Search content posted by user with user id | |
searchuser | byte[] | | search content posted by user with user name | 4 |
forumid | String | | search only in forum with forumid | 4 |
threadid | String | | search only in thread with threadid | 4 |
titleonly | Int | | seach title only?
Accept 0 and 1 | 4 |
showposts | Int | | Show results as posts?
Accept 0 and 1 | 4 |
searchtime | Int | | Search topic/post replied or posted in [searchtime] seconds. | 4 |
started_by | Boolean | | Used when search user's topic, indicate if only user started topics should be returned. When this parameter was specified, 'showposts' status will always be false. This is a new feature of search function, and flag 'search_started_by' in get_config will indicate the support of this feature. | |
only_in | Array of String | | Array of forum id, the search result must be in these forums | 4 |
not_in | Array of String | | Array of forum id, the search result must not be in these forums | 4 |
Output Parameters:
Name | Type | Required? | Description | Level |
[search result] | String | | The search result is the same as search_topic and search_post differ by key 'showposts' | 4 |