This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7006 - [FT] Test Suite
Summary: [FT] Test Suite
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Full Text 1.0 (show other bugs)
Version: Proposed Recommendation
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Jim Melton
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-09 14:14 UTC by Christian Gruen
Modified: 2009-07-06 18:31 UTC (History)
2 users (show)

See Also:


Attachments

Description Christian Gruen 2009-06-09 14:14:47 UTC
Dear all,

just two bugs this time..

[1] FTExtension-Opt-q4.xq
  I would expect an empty result, but no result file
  is specified in the catalog.

[2] xquery-xpath-composability-queries-results-q8
  I don't get results for this query, as "Usability Basics"
  does not occur in book "1".


Best wishes,
Christian
Comment 1 Pat Case 2009-06-11 00:58:06 UTC
Christian,

Re: [2] xquery-xpath-composability-queries-results-q8
  I don't get results for this query, as "Usability Basics"
  does not occur in book "1".

I changed the initial for to let.

Thanks again for working with me to give the details right!!!

Only item 1 remains to be done.

Pat
Comment 2 Christian Gruen 2009-06-29 15:35:56 UTC
Hi again,

I've come across three other potential bugs in the test suite. Let's hope that these are the last ones:


[3] FTWindow-complexwords1.xq

Query (ftbookexample.xml):
  $input-context/books/book[para ftcontains ("ninja" ftand "coder"
    ftand "knows") window 3 words]/title

Test Suite Result:
  empty result

Expected Result:
  <title>Ninja Coder</title>


[4] FTWindow-complexwords3.xq

Query (ftbookexample.xml):
  $input-context/books/book[para ftcontains ("ninja" ftand "coder"
    window 2 words) ftand "knows" distance exactly 3 words]/title

Expected Query:
  ...distance exactly 0 words...


[5] ftstopword-q9.xq

Query (FT-3-examples-source-document.xml):
  $input-context/books/book[.//content ftcontains "supports some users of"
  with stop words at "http://bstore1.example.com/StopWordList.xml"
            union at "http://bstore1.example.com/StopWordList2.xml" 
            union at "http://bstore1.example.com/StopWordList4.xml" 
           except at "http://bstore1.example.com/StopWordList5.xml"]

Test Suite Result:
  empty result

Expected Result:
  <book number="1">...</book>


Best,
Christian

Comment 3 Pat Case 2009-06-29 17:29:35 UTC
Christian,

Re: [5] ftstopword-q9.xq

Query (FT-3-examples-source-document.xml):
  $input-context/books/book[.//content ftcontains "supports some users of"
  with stop words at "http://bstore1.example.com/StopWordList.xml"
            union at "http://bstore1.example.com/StopWordList2.xml" 
            union at "http://bstore1.example.com/StopWordList4.xml" 
           except at "http://bstore1.example.com/StopWordList5.xml"]

Test Suite Result:
  empty result

Expected Result:
  <book number="1">...</book>


--I am thinking Book 1 is a not good result because the query for "supports some users of" can only come close to matching "supports the user in", which it doesn't match because stemming is off so "users" do not match "user". What do you see that I don't see?

Pat
Comment 4 Christian Gruen 2009-06-29 17:47:20 UTC
Hi Pat,

> I am thinking Book 1 is a not good result because the query for "supports
> some users of" can only come close to matching "supports the user in",
> which it doesn't match because stemming is off so "users" do not match
> "user". What do you see that I don't see?

maybe the specified input document is supposed to be different for this query? FT-3-examples-source-document.xml contains the following content:

<content>
  <p>The usability of a Web site is how well the  
      site supports the users in achieving specified  
      goals. A Web site should facilitate learning,  
      and enable efficient and effective task  
      completion, while propagating few errors.
  </p>
</content>

Thanks,
Christian

Comment 5 Pat Case 2009-06-29 17:53:27 UTC
Christian you are correct as usual. I will change the result to Book 1 this evening when I have access to CVS. Pat
Comment 6 Pat Case 2009-06-29 23:36:14 UTC
Christian,

Re: [5] ftstopword-q9.xq

The expected result is now Book 1. Thanks for the heads-up. I also changed it from a Fragment to an XML file, and corrected the link in the catalog.

Pat
Comment 7 zhen hua liu 2009-06-30 01:26:48 UTC
ACTION FTTF-198-01 Zhen to look at and fix item 1 of bug #7006. ETA: Today.

this is completed.

Added new output file FTExtension-Opt-q4.txt   and modified XQFTSCatalog.xml to add the
new output file.
Comment 8 Jim Melton 2009-07-06 18:31:17 UTC
Changes in response to items [3] and [4] have been made as suggested.  Consequently, I am marking this bug RESOLVED FIXED.  If you agree, then please mark it CLOSED.