How can i search for all the values of a field containing part of the search string in a collection
J
Joshua Cleetus
started a topic
over 6 years ago
I need to search for a value in a field and it should return all the values containing the string value. There is a method called withExactMatchForValue:. But i need all the match for value. I can't find a method for this. Can you please guide me, what to do?
I need to fetch all the values with a word say "Three" in a field containing values: "Three Dogs", "Two Cats", "Three Rats".
When i search for "Three" i should get "Three Dogs", "Three Cats".
Right now i have to type the entire word to get the results.
J
Joshua Cleetus
said
over 6 years ago
Also how can i do it in a custom endpoint?
M
Mike
said
over 6 years ago
Using business logic, you can do a `find()` on a collection, supplying an anchored regex as the query: http://devcenter.kinvey.com/ios/reference/business-logic/reference.html
Joshua Cleetus