Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Appcelerator Cloud - Find string in photos.title

$
0
0

Hi,

I'm having trouble using the query/search capabilities of Cloud.photos, more specifically, finding a way of search for a string in title field.

After reading this: Search & Query, I was able to perform querys with $regex:

where: {title: {'$regex' : '^' + searchterm}},

But works only if the search term is in the beginning of the title, and it's case sensitive (I'm obviously a complete regex newbie).

Also tried search API with no luck. I didn't find which were the searchable fields.

So, I'm in some sort of dead end. I'm looking for a SQL like similar funcionality, where I can perform a search of a term and if matches regardless of the position and whether it is upper or lower case.

Thanks in advance.


Viewing all articles
Browse latest Browse all 8068