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
Missing Core API Key in Configuration

I was going through the Q2 Cores Tutorial and ran into an error

    self.logger, new_address, self.configured_user.ssn, self.config.API_KEY
                                                        ^^^^^^^^^^^^^^^^^^^
AttributeError: 'Configuration' object has no attribute 'API_KEY'

The tutorial said that in self.config.API_KEY "config" was a copy of the Parent Core's configuration, but I don't know where I'm actually supposed to get this API Key from.

Posted 2 years ago
0

I actually found out that running q2 generate_config JXchangeExtended after going through the tutorial didn't generate any config variables. After changing the parent core to CorePro I saw a set of variables: ```import os

example_required_config = "This key is required."
CHANGE_ELEMENT_TO_MsgRqHdr = False

API_KEY = os.environ.get("Q2SDK_COREPRO_API_KEY")
API_SECRET = os.environ.get("Q2SDK_COREPRO_API_SECRET")
BASE_URL_OVERRIDE = os.environ.get("Q2SDK_COREPRO_OVERRIDE_URL")
USE_BRIDGE = False


After changing each instance of `COREPRO` to `JXCHANGE` the app worked as intend...
— Caleb Evans   2 years ago
Votes Newest

Answers

128 Views
0 Answers
2 years ago
2 years ago
Tags