- From: <bugzilla@jessica.w3.org>
- Date: Mon, 14 Feb 2011 14:50:49 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12064
Summary: [XQFTTS] FTWindow-paragraphs3
Product: XPath / XQuery / XSLT
Version: Proposed Recommendation
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: Full Text 1.0
AssignedTo: jim.melton@acm.org
ReportedBy: tim@cbcl.co.uk
QAContact: public-qt-comments@w3.org
The query FTWindow-paragraphs3
let $x := 1 return
$input-context/books/book[content contains text ("heuristic" ftand
"experience")
window $x paragraphs]/metadata/title
expects a single result. Our implementation returns the empty sequence.
The source document contains 'heuristic' and 'experience' in consecutive
paragraphs. Suppose the paragraphs are numbered 1 and 2.
>From the definition of fts:ApplyFTParagraphWindow we have:
for $match in $allMatches/fts:match
let $minpos := fn:min($match/fts:stringInclude/fts:tokenInfo/@startPara),
$maxpos := fn:max($match/fts:stringInclude/fts:tokenInfo/@endPara)
for $windowStartPos in ($maxpos - $n + 1 to $minpos)
let $windowEndPos := $windowStartPos + $n - 1
return ...
Here $n = 1, $minpos = 1, $maxpos = 2 and so we $windowStartPos rnages over 2
to 1. The range (2 to 1) is the empty sequence, hence no matches should be
found.
--
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, 14 February 2011 14:50:51 UTC