<?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>6198</bug_id>
          
          <creation_ts>2008-10-31 07:56:13 +0000</creation_ts>
          <short_desc>[FT] TestSuite - Weight 0</short_desc>
          <delta_ts>2008-11-07 15:00:05 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://basex.org/</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="Christian Gruen">christian.gruen</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>22308</commentid>
    <comment_count>0</comment_count>
    <who name="Christian Gruen">christian.gruen</who>
    <bug_when>2008-10-31 07:56:13 +0000</bug_when>
    <thetext>Hi,

the last post for today.. The query &quot;FTSelection-Weight-q1b.xq&quot; sets the weight of all results to 0.0. This is why I would expect 0 hits here. Instead, the current test suite file includes results.

If results are correct for this query, an implementation would have to make an explicit distinction between false hits and hits with &quot;0.0&quot; as scoring value - this is probably not what implementors and users would expect. Last but not least, if 0.0 scores are valid results, this should at least be implementation dependent.

Thanks,

Christian, BaseX Team 
http://www.basex.org</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22382</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2008-11-06 23:29:47 +0000</bug_when>
    <thetext>Christian, your report has merit, but recall that the meaning of weight values is implementation-defined (or is that -dependent?).  There is nothing in the spec that says that a weight of 0.0 means &quot;ignore this part of the query&quot;, so the assumption that the query should return nothing is mistaken.  We all believe, of course, that a query term with a weight of 0.0 should be considered &quot;less relevant&quot; or &quot;less important&quot; than a query term with a weight of 999.999, but that&apos;s not guaranteed by the spec. 

Nonetheless, it&apos;s probably appropriate to give two alternate possible results -- one as it&apos;s already specified, but the other as &quot;empty result&quot;.  It is perfectly reasonable, even though not required, that an implementation would choose to interpret 0.0 to mean &quot;completely irrelevant&quot;. 

Thanks for the report.  I&apos;ll go ahead and add that second alternative result, so I&apos;m marking this bug as FIXED.  If you agree with this resolution, please mark the bug CLOSED. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22386</commentid>
    <comment_count>2</comment_count>
    <who name="Christian Gruen">christian.gruen</who>
    <bug_when>2008-11-07 15:00:05 +0000</bug_when>
    <thetext>Dear Jim,
thank you for the detailed comments. Yes, an alternative result surely is the best solution here to consider different implementations. I&apos;ve closed this bug.

Christian, BaseX Team 
http://www.basex.org

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>