You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/09/30 12:00:47 UTC

[GitHub] [rocketmq-dashboard] StyleTang edited a comment on issue #24: Consider whether to add query message by topic and tags

StyleTang edited a comment on issue #24:
URL: https://github.com/apache/rocketmq-dashboard/issues/24#issuecomment-931255948


   Thanks for your request but we may not add this feature.
   Message tags is designed for message filter [Message filtering](https://partners-intl.aliyun.com/help/doc-detail/29543.htm)
   If you want to query message by index, you should use `key` but not `tag` (a message can contains multiple keys)
   ```java
   Message msg = new Message("TopicTest",
       "TagA",
       "Hello world".getBytes(RemotingHelper.DEFAULT_CHARSET));
   msg.setKeys(Arrays.asList("key1","key2"));   // you by query by both key1 and key2
   SendResult sendResult = producer.send(msg);
   ```
   
   Hope this solves your problem.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org