- From: <bugzilla@wiggum.w3.org>
- Date: Tue, 21 Oct 2008 22:17:31 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=6178 Summary: Syntax of the "weight" option Product: XPath / XQuery / XSLT Version: Working drafts Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Full Text 1.0 AssignedTo: jim.melton@acm.org ReportedBy: xfranc@online.fr QAContact: public-qt-comments@w3.org The weight option is defined by the following production: [144] FTSelection ::= FTOr FTPosFilter* ("weight" RangeExpr)? This means that in this expression the weight applies to the FtAnd expression, not the term "bar": "foo" ftand "bar" weight 2 This is equivalent to: ("foo" ftand "bar") weight 2 No to: "foo" ftand ("bar" weight 2) Now, my feeling is that when writing the 1st expression, a programmer would probably mean the second form: "foo" ftand ("bar" weight 2) In other terms, this syntax seems misleading to me. A related problem is that it is possible to specify a weight twice on the same expression: ("foo" ftand "bar" weight 2) weight 1 Here both weight options apply to the FtAnd. Suggestion: move the "weight" option to the level of FTPrimaryWithOptions: [149] FTPrimaryWithOptions ::= FTPrimary FTMatchOptions? ("weight" RangeExpr)? [144] FTSelection ::= FTOr FTPosFilter* -- Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Tuesday, 21 October 2008 22:17:43 UTC