W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2009

[Bug 6867] [FT] TestSuite

From: <bugzilla@wiggum.w3.org>
Date: Mon, 11 May 2009 20:57:10 +0000
To: public-qt-comments@w3.org
Message-Id: <E1M3cYg-0002Ad-QP@wiggum.w3.org>

--- Comment #2 from Christian Gruen <christian.gruen@gmail.com>  2009-05-11 20:57:10 ---
Thank you Pat!

A small addition to [6]: as far as I know, the following query...

  'a' ftcontains 'a' ordered weight 0.8

will return a parsing error whereas

  ('a' ftcontains 'a' ordered) weight 0.8

will be correctly parsed. I'm relying on my parser, but I will try to reproduce
the behaviour by the grammar rules..

[144] FTSelection           ::=  FTOr FTPosFilter*
   ... FTOr -> FTPrimaryWithOptions ...
[150] FTPrimaryWithOptions  ::=  FTPrimary FTMatchOptions? FTWeight?
[151] FTPrimary             ::=  (FTWords FTTimes?) | ("(" FTSelection ")") |

In 144, Position filters (here: ordered) are specified after the FTOr
expression (here: 'a'). This is why the parser will assume that the FTSelection
is finished after the position filter without checking the "weight" token in
150. If parentheses are added, the FTSelection branch in rule 151 is applied,
followed by the weight token in 150.

Hope this helps; always feel free to ask for more, or to correct me.

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 Monday, 11 May 2009 20:57:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:27 UTC