<?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>6305</bug_id>
          
          <creation_ts>2008-12-12 10:45:05 +0000</creation_ts>
          <short_desc>[FT] distance filter question</short_desc>
          <delta_ts>2011-01-06 15:46:44 +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>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/xpath-full-text-10</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="Petr Pleshachkov">peter.pleshachkov</reporter>
          <assigned_to name="Jim Melton">jim.melton</assigned_to>
          <cc>jmdyck</cc>
          
          <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>22748</commentid>
    <comment_count>0</comment_count>
    <who name="Petr Pleshachkov">peter.pleshachkov</who>
    <bug_when>2008-12-12 10:45:05 +0000</bug_when>
    <thetext>Dear authors,

I have a question about the following queries:

(&lt;p&gt;cat dog bird&lt;/p&gt;)[. ftcontains &quot;cat dog&quot; distance at least 2 words]
As I understood from the spec it should return true, because &quot;cat fog&quot; returns only one StringInclude. Right ? 

This query should return true as well. Right ? 
(&lt;p&gt;cat dog bird&lt;/p&gt;)[. ftcontains {&quot;cat&quot;, &quot;dog&quot;} phrase distance at least 2 words]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22754</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2008-12-12 19:47:40 +0000</bug_when>
    <thetext>[personal response]

&gt; (&lt;p&gt;cat dog bird&lt;/p&gt;)[. ftcontains &quot;cat dog&quot; distance at least 2 words]
&gt; As I understood from the spec it should return true, because &quot;cat fog&quot; returns
&gt; only one StringInclude. Right ?

(Presumably, for &quot;fog&quot;, you meant &quot;dog&quot;.) Yes, I believe it returns true. The search context is searched for a single phrase, so the distance filter is basically superfluous. (If you changed the FTPrimary to
    &quot;cat dog&quot; any word
or
    &quot;cat dog&quot; all words
then a distance filter would have some effect.)


&gt; This query should return true as well. Right ? 
&gt; (&lt;p&gt;cat dog bird&lt;/p&gt;)[. ftcontains {&quot;cat&quot;, &quot;dog&quot;} phrase distance at least 2
&gt; words]

Yes, I believe so.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22983</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2009-01-08 02:46:01 +0000</bug_when>
    <thetext>At its meeting on 2008-12-22, the Task Force agreed with my response in
comment #1.

I believe this resolves this issue. Bugzilla doesn&apos;t really have a
resolution appropriate to &quot;You asked a question and got an answer.&quot;,
so, somewhat arbitrarily, I&apos;m picking WORKSFORME.

If you accept this resolution, please mark the issue CLOSED.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>