<?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>6813</bug_id>
          
          <creation_ts>2009-04-15 09:11:40 +0000</creation_ts>
          <short_desc>empty string full-text query</short_desc>
          <delta_ts>2011-01-06 15:46:32 +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>Proposed Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</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>24734</commentid>
    <comment_count>0</comment_count>
    <who name="Petr Pleshachkov">peter.pleshachkov</who>
    <bug_when>2009-04-15 09:11:40 +0000</bug_when>
    <thetext>Dear authors,

In the spec. you say that token is a none-empty string of characters. But if 
I have the following query : &lt;p&gt;petr&lt;/p&gt;[. ftcontains &quot;&quot;] What is the result of this query ? 

And what is the result for this query &lt;p&gt;petr &lt;/p&gt;[. ftcontains &quot;petr&quot; ftand &quot;&quot;]

Kind regards,
Petr</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25489</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2009-06-07 03:44:48 +0000</bug_when>
    <thetext>We have added wording to section 3.2 &quot;Search Tokens and Phrases&quot; to
clarify various edge cases, including these.

In both queries, the StringLiteral &quot;&quot; is an FTWordsValue, which
evaluates to a single xs:string value, namely the empty string, which
is then tokenized, presumably into an empty sequence of tokens.
The associated FTAnyallOption is omitted, which is equivalent to &apos;any&apos;.
The relevant wording is now:
    If FTAnyallOption is &quot;any&quot;, the sequence of tokens for
    each string is considered as a phrase. If the sequence
    of tokens is empty, then the phrase contributes nothing
    to the set of matches for the FTWords.
So the empty string (with its empty sequence of tokens) contributes no
matches, and there are no other strings in the value of the FTWordsValue,
so the whole FTWords yields no matches. Propagating up from there, the
FTContainsExpr yields false, so the query yields the empty sequence.

We believe that the indicated wording change resolves this issue, so
I am marking it resolved-FIXED. If you agree, please mark it CLOSED.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>