Public Member Functions | |
| EMMessageSearchOption () | |
| void | setKeywordList (List< String > keywordList) |
| void | setKeywordMatchType (EMKeywordListMatchType keywordMatchType) |
| void | setConversationId (String conversationId) |
| void | setMsgTypes (List< EMMessage.Type > msgTypes) |
| void | setStartTime (long startTime) |
| void | setEndTime (long endTime) |
| void | setSearchScope (EMConversation.EMMessageSearchScope searchScope) |
The parameter configuration class for server message search. This feature requires the Message Search value-added service to be enabled in the Console.
| com.hyphenate.chat.EMMessageSearchOption.EMMessageSearchOption | ( | ) |
The constructor.
| void com.hyphenate.chat.EMMessageSearchOption.setConversationId | ( | String | conversationId | ) |
Sets the conversation ID filter (optional). For one-to-one chat, it is the other user's ID; for group chat or chat room, it is the group ID or chat room ID. Empty means searching all conversations.
| void com.hyphenate.chat.EMMessageSearchOption.setEndTime | ( | long | endTime | ) |
Sets the query end time, a Unix timestamp in milliseconds, which must be specified together with the start time.
| void com.hyphenate.chat.EMMessageSearchOption.setKeywordList | ( | List< String > | keywordList | ) |
Sets the search keyword list. Each keyword supports 1-512 characters, with a total maximum of 1024 characters and up to 5 keywords.
| void com.hyphenate.chat.EMMessageSearchOption.setKeywordMatchType | ( | EMKeywordListMatchType | keywordMatchType | ) |
Sets the search keyword match type. The default is EMKeywordListMatchType#OR.
| void com.hyphenate.chat.EMMessageSearchOption.setMsgTypes | ( | List< EMMessage.Type > | msgTypes | ) |
Sets the message type filter (optional). Command messages and voice messages are not supported.
| void com.hyphenate.chat.EMMessageSearchOption.setSearchScope | ( | EMConversation.EMMessageSearchScope | searchScope | ) |
Sets the search scope. The default is message content only. See EMConversation.EMMessageSearchScope.
| void com.hyphenate.chat.EMMessageSearchOption.setStartTime | ( | long | startTime | ) |
Sets the query start time, a Unix timestamp in milliseconds, which must be specified together with the end time.