javascript - Parse.com JS API - wildcard search -
i have been searching , can't find instruction on how create simple wildcard search search fields in class.
for example have listing like:
title: new listing state: florida city: joe
if user searches: "listing florida"
the above listing included in results.
please let me know think!
thanks, mitch
what want take each string in input ("listing florida" -> ["listing", "florida"]) , search using big and
lots of or
parts. ugly query.
it easier if copied text of every searchable field field called searchdump or (you in cloud code afterupdate or something), this:
var query = new parse.query(myclass); (var word in wordlist) { query.contains('searchdump', word); }
Comments
Post a Comment