search Messages For Channels
public abstract void searchMessagesForChannels(ConversationType conversationType, String targetId, Array<String> channelIds, String keyword, long startTime, int limit, IRongCoreCallback.ResultCallback<List<Message>> resultCallback)
Searches for messages in a specified conversation based on user ID, conversation business identifier, keyword, etc.
Note: To ensure that custom messages can be searched, implement the getSearchableWord method in your custom message.
Since
5.6.2
Parameters
conversation Type
The specified conversation type.
target Id
The specified conversation ID.
channel Ids
The business identifier of the conversation to which the messages belong. (0
keyword
The keyword. (0
start Time
The start time for the query. Pass 0 to start searching from the latest message, searching backward from this time.
limit
The number of search results to return 0 < limit <= 100
. If limit
> 100
, only 100 results will be returned.
result Callback
The callback for search results.