This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
For details, see http://lists.w3.org/Archives/Public/public-webapps/2010AprJun/1094.html The idea is to allow a full javascript expression to be passed to createIndex. This expression would be run every time a new or modified object is stored in an objectStore. The expression would produce zero or more index values that should be associated with the stored object. There's lots of details to figure out still, such as the syntax of the expression and which context it will be running in. And how non-js implementations would supply this expression.
I'm not convinced this is a good idea. Will try to send my feedback to the list in the next 24 hrs.
Are you planning on working on this soon? If not, maybe you should assign it to dave.null@w3.org
Resolving this as LATER so that we can pick it up once we start working on v2
This seems like the right IDB building block for implementing "full text search", with implementations providing other pieces like word splitting and stemming. Agreed about the details. Although something like "String($).split(/\s+/)" would work for toy cases (assuming JS), any real implementation would require expressions to have access to non-trivial library functions, or access to non-trivial host objects.
Moved to https://github.com/w3c/IndexedDB/issues/33