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

3 years ago
Trey Teter
124 × 2 Administrator
Hello Draden, There are a few ways to do this. To just have a simple DEV, STG, or PROD. Import `from q2_sdk.core.configuration import settings` then call `settings.DEPLOY_ENV` to get 'DEV', 'STG', or 'PROD'. This will only differentiate between those three and FIs can have multiple 'STG' environments. So do be careful how you depend on this variable. If you need environment specific data like for every installed location I recommend using Wedge_Address_Configs(https://docs.q2developer.com/tutorials/online_banking/configuration.html). In general this is the best way to have environment specific data. Hope this helps, Trey Teter
Hello Draden, the best way to do this is to use wedge_address_configs. That way you can set whether it be different urls to call, different values to pass to your api, or different api keys it can all be set on a per install basis.
Original
Trey Teter
124 × 2 Administrator
How to tell which environment code is running in

Hello Draden, the best way to do this is to use wedge_address_configs. That way you can set whether it be different urls to call, different values to pass to your api, or different api keys it can all be set on a per install basis.