Bugzilla – Bug 10000
Allow expressions in addition to keyPaths when creating indexes
Last modified: 2012-11-13 21:31:38 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 email@example.com
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.