I need an iPhone / iPad app to be able to quickly search around 10,000 entries (about every paragraph of text) for any substring contained in the entry. Therefore, if the entry contains the word "Flame", the request for "lame" must match.
I am currently using SQLite, but the search for "LIKE% term%" is too slow for many records. Enabling full-text search does not seem to fully satisfy my needs, since SQLite only supports wildcard prefix characters (for example, "Flam *", not "* lame").
I experimented using giant blob text (~ 350K) and did [NSString rangeOfString: ...], which I think uses the Boyer-Moore algorithm. This is faster than searching for "LIKE% term%", but still not the speed I hope for.
Any suggestions for approaches or libraries that would achieve such a scalable subscript search and that would work on the iPhone?
substring ios search iphone full-text-search
user584528
source share