There is no Out of the box solution to be able to retrieve the desired response from a Topic based on a specific field in the request.
Topic is a "Pull Technology" unlike queue which is a "Push" and topic being one to many, it is important the recipient knows the response he needs to subscribe for at the time of subscription. This cannot be achieved dynamically unless you are buffering all the responses from a topic and traversing through them to pick the desired one. You may have to use customize to achieve this.
There is a documentation at https://docs.oracle.com/cd/E19798-01/821-1841/bncer/index.html which might be useful for this requirement of understanding how to design JMS Selector Queries.
Please note that there are no samples for JMS Selector Query though as the below document also says, selector query is not application specific but JMS provider specific.