Bugzilla – Bug 10000
Allow expressions in addition to keyPaths when creating indexes
Last modified: 2015-04-09 21:49:29 UTC
For details, see
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 firstname.lastname@example.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.