I'm not going filter my data. I'm going compile DB (SQLite) from external text sources, and during comile I want index this data. And then I want make search in this index.
Yes, I saw this thread, but I don't use SQLite FTS, because I need analyze my source data for separate it for tokens and then index this tokens and I think it will be slow. I need something like Lucene, or Spotlight 🙂 By the way what engine use Spotlight?
Spotlight works hand-in-hand with built-in metadata functionality (mdimport, as an example, under OS X). Whenever a file is written to disk, a special program is run that reads the file, adds metadata about it to the file system, and updates a special "index". When you start typing in Spotlight menu, Spotlight searches this index. On the iPhone, this means searching across the index (filtering out mismatches) that represents installed apps, as an example, but not going down into app contents and/or documents that exist as part of those apps individually.
Simply put, as currently relates to the iPhone OS, I believe you'll only find the functionality you seem to want by server-side indexing and searching (match/like/etc).