- From: <bugzilla@wiggum.w3.org>
- Date: Sun, 25 Sep 2005 19:14:04 +0000
- To: public-qt-comments@w3.org
- Cc:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2299
Summary: Distance constraints do not work on phrases (formerly
Cluster G, Issue 63)
Product: XPath / XQuery / XSLT
Version: Last Call drafts
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Full Text
AssignedTo: doerre@de.ibm.com
ReportedBy: jim.melton@acm.org
QAContact: public-qt-comments@w3.org
It is not possible to combine the distance operation with searching for phrases.
Example:
[. ftcontains "Redmond-based" && "company" distance at least 2]
The problem is that a phrase is internally resolved into a distance operation
itself, which can impose a contradicting requirement to the explicit distance
operation used in the query. Here it is (with some assumptions on tokenization):
[. ftcontains ("Redmond" && "-" && "based" ordered with distance 0) && "company"
distance at least 2]
The second distance constraint is then imposed to all individual tokens
(including those from the phrase) and hence cannot be satisfied. The query will
also return false.
Received on Sunday, 25 September 2005 19:14:09 UTC