I have been looking at the documentation but I can't seem to figure out how to correctly create a filter object for the buildfire.datastore.search query.
I have an address property on my object and I want to be able to type in a partial amount of the address and have it return. Below are the filter objects I have tried to pass into the search query:
search = {filter: {"$json.address": {"$regex": `/${this.state.search}/`}}};
search = {filter: {'$regex': {'$json.address': this.state.search}}};
Neither have worked. End goal is:
buildfire.datastore.search(search, 'location', cb);
EDIT:
I even tried to hardcode the regex in the docs:
"$or" : [
{"description": {"$regex":"/new /"}}
]
and it didn't work (I replaced 'new' with a string I knew would show).