Properties | |
NSArray< NSString * > * | keywordList |
V2TIMKeywordListMatchType | keywordListMatchType |
NSArray< NSString * > * | senderUserIDList |
NSArray< NSNumber * > * | messageTypeList |
NSString * | conversationID |
NSUInteger | searchTimePosition |
NSUInteger | searchTimePeriod |
NSUInteger | pageIndex |
NSUInteger | pageSize |
NSUInteger | searchCount |
NSString * | searchCursor |
|
readwritenonatomicstrong |
The keyword list can contain up to 5 keywords. When the sender and type of the message are not specified, the keyword list must be non-empty. Otherwise, the keyword list can be empty.
|
readwritenonatomicassign |
Set the keyword list matching type, which can be the OR or AND relationship search. The options are V2TIM_KEYWORD_LIST_MATCH_TYPE_OR (default) and V2TIM_KEYWORD_LIST_MATCH_TYPE_AND.
|
readwritenonatomicstrong |
Set userIDs for message sending. Up to 5 userIDs are supported.
|
readwritenonatomicstrong |
Set the message types to search. If null is passed in, all message types supported are searched (V2TIMFaceElem and V2TIMGroupTipsElem are not supported).
|
readwritenonatomicstrong |
Search all conversations or a specified conversation
conversationID == null: search all conversations
conversationID != null: search a specified conversation. Unique ID of a conversation. For one-to-one chats, the value format is [NSString stringWithFormat:"c2c_%",userID]. For group chats, the value format is [NSString stringWithFormat:"group_%",groupID].
|
readwritenonatomicassign |
Start time for search. The default value is 0, indicating to start search now. The value can also be the UTC timestamp, in seconds.
|
readwritenonatomicassign |
A time period in the past starting from the start time, in seconds. The default value 0 indicates that the time range is not limited. The value 24x60x60 indicates the past day.
|
readwritenonatomicassign |
Page number: used for the paginated display of the search results. Page numbers must start from 0. For example, to display 10 results per page, call the API according to the following rules:
|
readwritenonatomicassign |
Count of results per page: used for the paginated display of the search results. If you do not want to paginate the search results, set the parameter to 0. However, a large count of search results without pagination may cause performance issues.
|
readwritenonatomicassign |
Count of cloud search results
|
readwritenonatomicstrong |
The starting position for cloud search. Set an empty string for the first time, and pass in the value of searchCursor in V2TIMMessageSearchResult when continuing to search.