get_limited_search()
Parameters
- Token(character varying)
- Criteria(character varying)
- Limit(integer)
- Offset(integer)
Returns
- Success or a list of messages
Description
- Takes an input criteria and uses it to search for specific messages. The criteria include
- CourseID
- UserGroupID
- MessageGroupID
- IsThread // if it exists in the list the results are limited to only OP of threads
- CreationTimeLTE //This is when the message was created LTE means less than or equal so "Message"."CT" <= CreationTimeLTE
- CreationTimeGTE // Greater than or equal
- ChildCountGTE // Number of children the message has
- ChildCountLTE
- ScoreGTE // the message score based on user votes
- ScoreLTE
- Search criteria would look something like:
search_messages('briankey','{"CourseID":"2","UserGroupID":"43","ScoreLTE":"2","CreationTimeGTE":"2018-10-24"}')
Errors
- 1 - Invalid Session.
- 2 - Invalid search Criteria.
- 3 - Cannot read group.
Related functions