I've posted an in-depth article and tutorial on creating a client-side search engine with Gears. Here's a short snippet from the article:
Did you know that you can use Gears to do fast, client-side searching of data, similar to a client-side search engine? Gears bundles Full-Text Search (FTS) abilities right into its local, SQLite database. MySpace, for example, uses this feature with their MySpace Mail application, downloading all of a user's messages for fast, client-side search. Because all of the data is local, you can do nifty things like search over the data in real-time as the user types, something that is much harder if you have to query over the network to a server to do the searching.
The article covers the following:
- An introduction to Gears' Full-Text Search and Worker features
- How to drop PubTools Search into your page to quickly get going
- Deep walkthrough and dissection of how PubTools Search works internally with source code and snippets so you can use these Gears features in your own applications
- Tips and tricks when working with Gears