<?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>3931</bug_id>
          
          <creation_ts>2006-11-01 00:34:26 +0000</creation_ts>
          <short_desc>[FT] Section 3.2.5: order of options</short_desc>
          <delta_ts>2007-04-19 15:12:48 +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>
          
          
          <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>12729</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Rys">mrys</who>
    <bug_when>2006-11-01 00:34:26 +0000</bug_when>
    <thetext>/book[@number=&quot;1&quot;]//p ftcontains &quot;propagation of errors&quot;
with stemming with stop words (&quot;a&quot;, &quot;the&quot;, &quot;of&quot;)

Does stemming apply to stop words list too or do you first get stop words applied is that query different from:

/book[@number=&quot;1&quot;]//p ftcontains &quot;propagation of errors&quot;
with stop words (&quot;a&quot;, &quot;the&quot;, &quot;of&quot;) with stemming?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13864</commentid>
    <comment_count>1</comment_count>
    <who name="Pat Case">pcase</who>
    <bug_when>2007-01-31 18:48:13 +0000</bug_when>
    <thetext>In 3.2 FTMatchOptions, it says that 
FTMatchOptions are applied in the order in which they are written in the query.
So yes the queries are different. Stemming and stop words are applied in the order written.

You stem words in the query. You replace stop words with any word. So the user can stem the words in the query before or after the stop words are replaced.

So if we have
&quot;to be or not to be&quot; with stemming with stop words (&quot;be&quot;)
--You would stem all the words in query including &quot;be&quot;, then replace &quot;be&quot;. You 
might end up with &quot;being&quot; in your query, but it doesn&apos;t matter because you will 
find any word in the position of the &quot;be&quot; which includes &quot;being&quot; anyway.

&quot;to be or not to be&quot; with stop words (&quot;not&quot;) with stemming 
--You would replace &quot;be&quot;, then stem all the words left in query. You will get the results you get above.

Either way it would be spitting in the wind to say &quot;with stop word x&quot; and to search for X in your query, but you will get the same results, possibly nasty, results. And it appears that only when they are the same that there might have been a difference in the results.

In 4.2.3 The evaluate function, we say:
Ordering among match options is necessary because match options are not always 
commutative. For example, synonym(stem(word)) is not always the same as stem(synonym(word)). Naturally, match options may be reordered when they commute, 
but this is an optimization issue and is beyond the scope of this document.

So I don&apos;t think there is any need to protect users and we have said that implementations can vary the order to optimize, so I think the spec is clear here, the results are satisfactory, and there is no need for change. Might I mark this won&apos;t fix?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14007</commentid>
    <comment_count>2</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-02-18 23:09:01 +0000</bug_when>
    <thetext>Changes were adopted by the TF at its recent F2F that respond to your questions.  Specifically, it was agreed that the various FTMatchOptions would be applied in a specific sequence, as you agreed during the meeting.  This bug remains open pending review of the actual changes to the spec. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14766</commentid>
    <comment_count>3</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-04-19 15:12:37 +0000</bug_when>
    <thetext>The changes agreed for this bug have been reviewed by the TF, which approves the wording.  Therefore, this bug is marked FIXED.  Since you were present when the review took place we assume that you are satisfied with this resolution to your comment and have also marked it CLOSED. </thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>