[Bug 6304] [FT] attribute value tokenization

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6304





--- Comment #2 from Michael Dyck <jmdyck@ibiblio.org>  2008-12-22 06:52:57 ---
I disagree, I believe it's a valid bug.

The example query:
      /books/book//title ftcontains "web site" ftand
      "usability" window 3 words

The only 'title' in the sample doc is:
      <title shortTitle="Improving Web Site Usability">Improving  
        the Usability of a Web Site Through Expert Reviews and
        Usability Testing</title>

While it's true that the value of the shortTitle attribute contains "web site"
and "usability" within a 3-word window, that value does not contribute to the
string value of the title element, and so is not in the search context for this
FTContainsExpr.

And while it's true that the string value of the title element does contain
"web site" and "usability", the smallest window that contains both phrases is a
5-word window, which does not satisfy the FTWindow filter.

Thus, the prose is incorrect when it says:
    [The] expression returns true, because the title element
    contains "Web Site Usability".
Rather, the expression returns false, and the title element does not contain
"Web Site Usability" (at least, not in a way that's pertinent to the example
query).


-- 
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, 22 December 2008 06:53:12 UTC