<?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>4701</bug_id>
          
          <creation_ts>2007-06-23 09:58:10 +0000</creation_ts>
          <short_desc>[FT] editorial: 2.3 Score Variables</short_desc>
          <delta_ts>2008-01-07 01:33:58 +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>Last Call drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Dyck">jmdyck</reporter>
          <assigned_to name="Pat Case">pcase</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>15529</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2007-06-23 09:58:10 +0000</bug_when>
    <thetext>2.3 Score Variables

[1]
para 1
&quot;[Definition: Scores express the relevance of those results to the
full-text search conditions.]&quot;
    Not great as a standalone definition. Maybe:
        The score of a full-text search result expresses its relevance to
        the search conditions.

[2]
para 3
&quot;The production for the extended &apos;for&apos; clause follows.&quot;
    [2a]
    After &quot;clause&quot;, insert something like &quot;for XQuery 1.0&quot;.

    [2b]
    Then, after the productions, say:
        &quot;In XPath 2.0, the SimpleForClause is extended similarly.&quot;
    (Or give it explicitly.)

[3]
para 7
&quot;XPath 2.0 Full-Text extends the language of XPath 2.0 in the for
expression in the same way: with optional score variables.&quot;
    Given the above changes, you can delete this sentence.

[4]
para 9
&quot;Note that the score applies to the entire &apos;for&apos; expression.&quot;
    It&apos;s not clear what this means. Given the subsequent sentence, I think
    maybe you&apos;re talking about the expression that follows the &quot;in&quot;
    keyword (as opposed to the expression that contains the &quot;for&quot;
    keyword).

[5]
para 11
&quot;to the nodes in the respective RangeExprs&quot;
    s/nodes/items/
    s/in/returned by/

[6]
para 12
&quot;The let variable may be dropped from the let clause, if the score
variable is present.&quot;
    s/may/must/, according to the EBNF.

[7]
para 14
&quot;While when ...&quot;
    Not a promising start for a sentence. How about:
        &quot;When using ... the scores. However, it is possible...&quot;

[8]
para 16
&quot;more relevant than a book that does not contain either of both.&quot;
    &quot;either of both&quot; is presumably a typo.
    s/both/those phrases/

[9]
para 17
&quot;The expression ExprSingle assigned to the score variable&quot;
    [9a]
    Delete &quot;ExprSingle&quot;.

    [9b]
    s/assigned to/associated with/

[10]
&quot;is passed to the scoring algorithm and is not evaluated directly.&quot;
    Change to:
        &quot;is passed to the scoring algorithm, which does not evaluate it
        directly&quot;
    (That also covers the case of a score variable in a ForClause, where
    the expression *is* evaluated directly, but not by the scoring
    algorithm.)

[11]
&quot;is not evaluated directly.&quot;
    But is it evaluated indirectly? If so, what are the semantics of
    indirect evaluation? What is its evaluation context? Does it raise
    errors? Certainly all the non-FT expressions within an FTContainsExpr
    have to evaluated, otherwise you have nothing to score and no criteria
    by which to score it.

[12]
&quot;The set of supported expressions is implementation-defined.&quot;
    [12a]
    I think you&apos;ll need to be a bit more explicit. E.g.:
        &quot;The set of expressions supported by the scoring algorithm...&quot;

    [12b]
    What is the effect of using an expression that is not supported?

    [12c]
    Are there any expressions that must be supported?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15597</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-06-26 08:45:16 +0000</bug_when>
    <thetext>The FTTF considered your item [6] at its F2F in June, 2007, and agreed with
your problem report.  Appropriate changes were made to correct the problem.  As
other parts of this bug report are resolved, further comments will be added to
this bug until they are all resolved.  At that time, we will mark the bug
RESOLVED and ask you to mark it CLOSED.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16231</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2007-08-20 19:22:25 +0000</bug_when>
    <thetext>The FTTF considered some of these items at its meeting today, and made the following decisions:

[10] and [11]: We will delete the phrase &quot;and is not evaluated directly&quot;.

[12a]: Left to editor&apos;s discretion.

[12b]: If an expression that is not supported by the scoring algorithm is passed to the scoring algorithm, the result is implementation-defined. We will add a sentence to this effect.

[12c]: There are no expressions that must be supported. No change to spec.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16542</commentid>
    <comment_count>3</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-09-13 22:45:19 +0000</bug_when>
    <thetext>As decided in meeting #152 (the minutes of which are at the member-only URI
http://lists.w3.org/Archives/Member/member-query-fttf/2007Sep/0005.html), items [1], [2a], [2b] (that is, all of item [2]), [3], [7], [8], [9a], and [9b] (that is, all of item [9]) have been resolved. 

This leaves items [4] and [5] remaining to be resolved. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16950</commentid>
    <comment_count>4</comment_count>
    <who name="Pat Case">pcase</who>
    <bug_when>2007-10-01 19:16:02 +0000</bug_when>
    <thetext>Item [5] changes made as recommended. Approved by FTTF on October 1, 2007. Only item [4} remains to be resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17230</commentid>
    <comment_count>5</comment_count>
    <who name="Pat Case">pcase</who>
    <bug_when>2007-10-16 12:01:00 +0000</bug_when>
    <thetext>[4] The FTTF agreeed. We substituted: Note that the score variable gets *one* score value for each item in the value of the expression after the &quot;in&quot; keyword, regardless of the number of FTContainsExprs in that expression.

These changes will appear in the next build of the internal Full-Text language
after the October 11 build, and in the next public version. They close the last
item in this bug. 

Michael, if you approve of the changes, please mark the bug closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17454</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2007-10-26 22:16:03 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; [4] The FTTF agreeed. We substituted: Note that the score variable gets *one*
&gt; score value for each item in the value of the expression after the &quot;in&quot;
&gt; keyword, regardless of the number of FTContainsExprs in that expression.

In the document, &quot;one&quot; should be set off with an italic font rather than asterisks, and &quot;in&quot; should be set off with a monospace font rather than quotes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17951</commentid>
    <comment_count>7</comment_count>
    <who name="Pat Case">pcase</who>
    <bug_when>2007-12-04 13:57:17 +0000</bug_when>
    <thetext>In the document, &quot;one&quot; is now in italic font (emph tags) and &quot;in&quot; is in a monospace font (code tags).

These changes will appear in the next build of the internal Full Text language  and in the next public version. 

Michael, if you approve of the changes, please mark the bug closed.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18224</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2008-01-07 01:33:58 +0000</bug_when>
    <thetext>Thanks, closing now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>