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
Unanswered
Invalid Command Activity Message


You can define additional slash command handlers that accept a wildcard regular expression behind to serve as a catch-all.

bdk.activities().register(slash("/Help", false, context -> {
	// Regular logic
}));

bdk.activities().register(slash("/Help .*", false, context -> {
	// Invalid usage logic
}));
1
1
Posted 2 years ago
Yong Sheng Tan
39 × 2 Administrator
  
  

Thank you for the prompt response. "/Help .* " is not working in Python; tried @activities.slash("/Help .*",False) async def on_hello(context:CommandContext):

Renju Alex   2 years ago Report
  
  

@<1397186487144943616|Renju Alex> You are right - the Python BDK is missing this feature at the moment. I have filed an issue on the Pyton BDK repo here: https://github.com/finos/symphony-bdk-python/issues/255

Yong Sheng Tan   2 years ago Report
548 Views
0 Answers
2 years ago
2 years ago