W3C home > Mailing lists > Public > public-qt-comments@w3.org > July 2005

Re: [FT] FTDistance

From: Pat Case <pcase@crs.loc.gov>
Date: Wed, 20 Jul 2005 16:27:36 -0400
Message-Id: <s2de7b81.023@crsgw04.loc.gov>
To: <andrew.cao@cisra.canon.com.au>,<public-qt-comments@w3.org>
Thanks for your comment.
We have added an issue on the problems of combining phrases and
distance, and we are discussing possible solutions. We will report back
to you when we have solution to show you.
Please continue to make comments. In the future please make them via
the issue tracking system for this specification (instructions can be
found at http://www.w3.org/XML/2005/04/qt-bugzilla).
Pat Case for the XQuery and XPath Full Text Task Force

>>> andrewc <andrew.cao@cisra.canon.com.au> 7/17/2005 8:54 PM >>>

Dear editors,

This is a comment of the last example in section 3.1.9 FTDistance in 
XQuery and XPath Full Text Working Draft.
The Working Draft says:
/book[@number="1" and . ftcontains "web site" && "completion" distance

exactly 15 words same paragraph]/title
returns the title element if the words "web site" and "completion" 
appear within 15 words of each other and in the same paragraph.
However the semantic function of FTDistance says that the adjacent 
StringIncludes must have distance exactly 15 words. However here the 
StringInclude for "web" and the StringInclude for "site" will always 
have word distance zero. So this query should never return title
because there is no Match returned by FTDistance.

It appears to me that FTDistance is related with words, not phrases.
Am I correct?
Received on Wednesday, 20 July 2005 20:27:54 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:25 UTC