<?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>3898</bug_id>
          
          <creation_ts>2006-10-31 00:16:01 +0000</creation_ts>
          <short_desc>[FT] Semantics of FTProximity requires changes to use spans as result of sub-expressions</short_desc>
          <delta_ts>2007-04-20 15:40:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Full Text 1.0</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</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="Joaquin Delgado">joaquin.delgado</reporter>
          <assigned_to name="Jochen Doerre">doerre</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12672</commentid>
    <comment_count>0</comment_count>
    <who name="Joaquin Delgado">joaquin.delgado</who>
    <bug_when>2006-10-31 00:16:01 +0000</bug_when>
    <thetext>We need to make changes to FTProximity semantics to allow &quot;grouping&quot; for the evaluation of sub-expressions in nesting situations.

The solution involves the use of spans (contiguous block of tokens with start/end positions) as the result of the sub-expression to be used in the evaluation of outer expressions.

e.g.

/books ftcontains (((richard &amp;&amp; nixon) distance at most 2) &amp;&amp; ((george &amp;&amp; bush) distance at most 2) distance at least 20)

This would always return empty results in the current semantics because the &quot;at least 20&quot; would be violate the internal &quot;at most 2&quot; condition when applied to any continuous tokens. The desired result treates the result the result of the sub-expression as a span, pretty much like we do with phrases, thus allowing results that find elements that contain  &quot;richard m. nixon&quot;  and &quot;george w. bush&quot; at least 20 words apart.

-- Joaquin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14793</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-04-20 14:56:34 +0000</bug_when>
    <thetext>The TF agreed with your comment and has adopted changes to both the Distance Selection and Window Selection parts of the Full-Text spec to address the comment. The bug is therefore being marked FIXED.  If you are satisfied with the changes, please mark the bug CLOSED.  If you are not satisfied, please enter a response here in Bugzilla explaining your concerns.  If we do not receive a response within 14 days from the date of this response, we will mark the bug CLOSED unilaterally. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14805</commentid>
    <comment_count>2</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-04-20 15:40:07 +0000</bug_when>
    <thetext>Because you participated in the TF when this bug was resolved, we presume that
your concerns are addressed appropriately.  We are therefore marking this bug
as CLOSED.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>