search Conversations
public abstract void searchConversations(String keyword, Array<ConversationType> conversationTypes, String channelId, Array<String> objectNames, IRongCoreCallback.ResultCallback<List<SearchConversationResult>> resultCallback)
Search conversations based on keywords.
This method quickly returns a list of matching conversations, including the count of matched messages within each conversation. Use getMatchCount to retrieve the count.
Note: To enable custom messages to be searchable, implement the getSearchableWord method in your custom message class.
Since
5.1.1
Parameters
keyword
The keyword to search for.
conversation Types
The types of conversations to search. Note: When the ultra group conversation type is included, only locally stored message records in ultra group conversations are searched.
channel Id
The business identifier of the conversation to which the messages belong.
object Names
The types of messages to search for, e.g., RC:TxtMsg.
result Callback
Callback for search results.