Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Back to post

Revisions 2

one year ago
Vinay Mistry
23 × 2 Administrator
How to get room name from Stream ID
How to get room name from Stream ID
Hi Kunaal, You can obtain information about a stream using the [Stream Info](https://developers.symphony.com/restapi/reference/stream-info-v2) endpoint. Here is an example of how it can be used with the Python BDK ```python async def help_command(self, context: CommandContext): room = await self.bdk.streams().get_stream(context.stream_id) logging.debug(room) return await self._messages.send_message(context.stream_id, "<messageML>Help command triggered</messageML>") ``` The returned results from the `get_stream` call is shown below. One of the attributes returned is the room name, ``` 2023-03-13 15:19:40,517 - root - DEBUG - {'active': True, 'cross_pod': True, 'id': '3MKJswHOSZGM_smkhuG2vn___nkkg9oTdA', 'last_message_date': 1678720779156, 'origin': 'EXTERNAL', 'room_attributes': {'name': 'My Room'}, 'stream_type': {'type': 'ROOM'}} ``` Hope that helps.
Hi Kunaal, You can obtain information about a stream using the [Stream Info](https://developers.symphony.com/restapi/reference/stream-info-v2) endpoint. Here is an example of how it can be used with the Python BDK ```python async def help_command(self, context: CommandContext): room = await self.bdk.streams().get_stream(context.stream_id) logging.debug(room) return await self._messages.send_message(context.stream_id, "<messageML>Help command triggered</messageML>") ``` The returned results from the `get_stream` call is shown below. One of the attributes returned is the room name, ``` 2023-03-13 15:19:40,517 - root - DEBUG - {'active': True, 'cross_pod': True, 'id': '3MKJswHOSZGM_smkhuG2vn___nkkg9oTdA', 'last_message_date': 1678720779156, 'origin': 'EXTERNAL', 'room_attributes': {'name': 'My Room'}, 'stream_type': {'type': 'ROOM'}} ``` Hope that helps.
one year ago
Original
Vinay Mistry
23 × 2 Administrator
How to get room name from Stream ID

Hi Kunaal, You can obtain information about a stream using the [Stream Info](https://developers.symphony.com/restapi/reference/stream-info-v2) endpoint. Here is an example of how it can be used with the Python BDK ```python async def help_command(self, context: CommandContext): room = await self.bdk.streams().get_stream(context.stream_id) logging.debug(room) return await self._messages.send_message(context.stream_id, "<messageML>Help command triggered</messageML>") ``` The returned results from the `get_stream` call is shown below. One of the attributes returned is the room name, ``` 2023-03-13 15:19:40,517 - root - DEBUG - {'active': True, 'cross_pod': True, 'id': '3MKJswHOSZGM_smkhuG2vn___nkkg9oTdA', 'last_message_date': 1678720779156, 'origin': 'EXTERNAL', 'room_attributes': {'name': 'My Room'}, 'stream_type': {'type': 'ROOM'}} ``` Hope that helps.