<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>10000</bug_id>
          
          <creation_ts>2010-06-23 19:16:20 +0000</creation_ts>
          <short_desc>Allow expressions in addition to keyPaths when creating indexes</short_desc>
          <delta_ts>2015-08-10 20:33:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Indexed Database API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonas Sicking (Not reading bugmail)">jonas</reporter>
          <assigned_to name="Nikunj Mehta">nikunj.mehta</assigned_to>
          <cc>jorlow</cc>
    
    <cc>jsbell</cc>
    
    <cc>mike</cc>
    
    <cc>odinho</cc>
    
    <cc>public-webapps</cc>
    
    <cc>sdwilsh</cc>
    
    <cc>timm</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36388</commentid>
    <comment_count>0</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2010-06-23 19:16:20 +0000</bug_when>
    <thetext>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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36389</commentid>
    <comment_count>1</comment_count>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2010-06-23 19:54:09 +0000</bug_when>
    <thetext>I&apos;m not convinced this is a good idea.  Will try to send my feedback to the list in the next 24 hrs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43245</commentid>
    <comment_count>2</comment_count>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2010-12-10 12:24:21 +0000</bug_when>
    <thetext>Are you planning on working on this soon?  If not, maybe you should assign it to dave.null@w3.org</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46503</commentid>
    <comment_count>3</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2011-03-08 03:15:55 +0000</bug_when>
    <thetext>Resolving this as LATER so that we can pick it up once we start working on v2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78280</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2012-11-13 21:31:38 +0000</bug_when>
    <thetext>This seems like the right IDB building block for implementing &quot;full text search&quot;, with implementations providing other pieces like word splitting and stemming.

Agreed about the details. Although something like &quot;String($).split(/\s+/)&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122546</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2015-08-10 20:33:23 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/IndexedDB/issues/33</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>