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

2 years ago
Yong Sheng Tan
39 × 2 Administrator
Read-Only Room?
Read-Only Room?
When you create a room, you can set the room to read-only. In that case, only room owners can send messages in that room, but this property cannot be changed after the room is created. ```java // Java BDK Example V3RoomAttributes attributes = new V3RoomAttributes() .name("My Room") .readOnly(true); bdk.streams().create(attributes); ``` If you need those members to send messages, you will have to promote them to owners then revoke that later. However, at any point of time in between, they can possibly mess with your workflow by kicking the bot out of the room etc.
When you create a room, you can set the room to read-only. In that case, only room owners can send messages in that room, but this property cannot be changed after the room is created. ```java V3RoomAttributes attributes = new V3RoomAttributes() .name("My Room") .readOnly(true); bdk.streams().create(attributes); ``` If you need those members to send messages, you will have to promote them to owners then revoke that later. However, at any point of time in between, they can possibly mess with your workflow by kicking the bot out of the room etc.
2 years ago
Original
Yong Sheng Tan
39 × 2 Administrator
Read-Only Room?

When you create a room, you can set the room to read-only. In that case, only room owners can send messages in that room, but this property cannot be changed after the room is created. ```java V3RoomAttributes attributes = new V3RoomAttributes() .name("My Room") .readOnly(true); bdk.streams().create(attributes); ``` If you need those members to send messages, you will have to promote them to owners then revoke that later. However, at any point of time in between, they can possibly mess with your workflow by kicking the bot out of the room etc.