<?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>3935</bug_id>
          
          <creation_ts>2006-11-01 00:40:22 +0000</creation_ts>
          <short_desc>[FT] Section 3.2.7: Escaping wildcards</short_desc>
          <delta_ts>2007-04-20 15:44:04 +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="Michael Rys">mrys</reporter>
          <assigned_to name="Jim Melton">jim.melton</assigned_to>
          <cc>pcase</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>12733</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Rys">mrys</who>
    <bug_when>2006-11-01 00:40:22 +0000</bug_when>
    <thetext>How do we escape a wildcard for the case where we have a search with wildcards and need one or two escaped wildcards that should not serves as wildcards in the search?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13483</commentid>
    <comment_count>1</comment_count>
    <who name="Jochen Doerre">doerre</who>
    <bug_when>2007-01-12 16:53:41 +0000</bug_when>
    <thetext>We do not have escaping syntax for wildcards. We did not consider this an important use case, since the characters used for wildcarding are not likely to be searched and many implementations will choose not to support searching them.
If you have a query where you want to search for such characters and want to use wildcards as well you would need to split query terms apart to be able to use &quot;with wildcard&quot; and &quot;without wildcard&quot; as appropriate. E.g. if you want to match * literally in &quot;A*B.{2,3}C*D&quot; you could write:

(&quot;A*&quot; without wildcard) &amp;&amp; (&quot;B.{2,3}C&quot; with wildcard) &amp;&amp; (&quot;*D&quot; without wildcard) 
distance at most 0 ordered

If you think escaping wildcards is important we have to reopen the discussion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13667</commentid>
    <comment_count>2</comment_count>
    <who name="Pat Case">pcase</who>
    <bug_when>2007-01-17 18:54:10 +0000</bug_when>
    <thetext>I promised to find the language we had for ecaping wildcards in a previous version.

It follows:

When &quot;with wildcards&quot; is present indicators and qualifiers must be escaped by a backslash (\ ) if they are to be read as punctuation marks rather than indicators and qualifiers. A period which is not an indicator must be preceded by a backslash to be read as a period. Similarly a question mark, asterisk, or plus sign which is not a qualifier must be preceded by a backslash to be read as a question mark, asterisk, or plus sign.

Pat</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14305</commentid>
    <comment_count>3</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-03-02 21:48:02 +0000</bug_when>
    <thetext>The Task Force has accepted a proposal to align the Full-Text spec with the XQuery spec such that wildcards are escaped by preceding them with a backslash (\). 

Please mark this bug CLOSED if you are happy with the resolution. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14822</commentid>
    <comment_count>4</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-04-20 15:44:04 +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>