![swifty search swifty search](https://vignette.wikia.nocookie.net/villains/images/b/b8/Swifty_and_Sonic_2.jpg)
The next step is to update the Save and New functions within the app so that our new Parse column gets some data. Step 3 = TICK! Step 4 - Revise how data is saved back to Parse Update Parse class definition - add searchText column We’ll call the new column searchText and it will be of type String. Let’s log into Parse and add a new column to our Countries Parse data class. We’ll concatenate the text we want to be searchable into a new Parse column, ensuring the text in this column is all lower case. Solution We now know our search strategy. (Parse have a blog post that discusses this tactic - see the links section for details) Fortunately with our small data set we can work around these limitations by concatenating the text we need to be searchable into it’s own column. Unfortunately Parse Where Clauses are also a little limited, eg: you can only search against 1 column and you can not specify case sensitivity. Where Clause With predicates not able to provide the matching methods we need we must look to the more traditional “Where Clause” for our search feature. I really hope that in time (soon) Parse invest in this area.
![swifty search swifty search](http://i.ytimg.com/vi/DmVcsm3bbqI/maxresdefault.jpg)
Unfortunately Parse predicates are limited in capability, missing key matching methods - LIKE, MATCHES, CONTAINS and ENDSWITH. They make defining search criteria a sinch, they are easy to read and easy to validate in your head. What I’m saying is that for many (?most?) app projects Parse search will be great - just make sure you validate this before you start coding. As apposed to searching tall and wide data sets, where I would guess performance is impacted. While the documentation does hint that Parse are able to search against large text/numeric data sets quickly enough to make it viable I have a suspicion that these “large” data sets would be tall and narrow (content per record is not great, but there are lots of them). If you are hoping that Parse will allow you to complete complex searches like within the contents of office type files, or search for objects within images you are going to be disappointed. Excellent! There are 2 types of search method, “Where Clause” and “NSPredicates”. If you’re not interested in why I chose the method I did - skip this section.įirst lets check out the Parse search documentation, which appears to be pretty detailed. You just tick the “enable search” check box in your “developer coding thingy desktop”……Hmmm. I’ve included this section because search is one of those features that people (managers) just think happens.
![swifty search swifty search](https://i.ytimg.com/vi/h7yIZbCqXrw/maxresdefault.jpg)
The video does not demonstrate the DELETE ROW capability that was implemented in the previous tutorial, but is included in the starter project.