W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

Re: [IndexedDB] Full text search?

From: Arthur Barstow <Art.Barstow@nokia.com>
Date: Sun, 8 Apr 2012 12:32:54 -0400
Cc: <public-webapps@w3.org>
Message-Id: <866CCB98-6364-489D-839A-EB20F27C2CD2@nokia.com>
To: ext Javier Holguera <jholguerablanco@hotmail.com>
On Apr 8, 2012, at 10:19 AM, ext Javier Holguera wrote:

> Hi,
>  
> I’m starting with IndexedDB with a simple sample application. It is a Tasks List which stores its information into a IndexedDB database. I may have chosen a simpler persistence technology, but I wanted to give a try to IndexedDB.
>  
> Anyway, my application should allow searching in the stored tasks by a key word. For example, if I search by “dinner” word, I would like to retrieve entries in the database with names like “Dinner ingredients list”, “Prepare the dinner” or “Ask Mary to do the dinner”. I think it is a typical “Full text Search” example.
>  
> How can it be implemented with IndexedDB? As far as I have read, I can retrieve elements from the database based on any of the object properties, but it must be a complete match. If it is not possible, it would force to move all Object Store records to memory to iterate over them and do the full text search “manually”, which is quite inefficient.
> Thanks for the information.

FYI, "fulltext index" is included in the list of features for the "next" version <http://www.w3.org/2008/webapps/wiki/IndexedDatabaseFeatures>. I think the main proponents of the spec consider v1 of the spec feature complete (bug list is <http://tinyurl.com/Bugz-IndexedDB>).

-AB
Received on Sunday, 8 April 2012 16:33:25 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:51 GMT