W3C home > Mailing lists > Public > public-qt-comments@w3.org > June 2010

[FT] FTWindow semantics wrong?

From: Paul J. Lucas <paul@lucasmail.org>
Date: Tue, 1 Jun 2010 22:35:54 -0700
Message-Id: <9C01B649-94E8-4BE7-A3AE-321FB1C61436@lucasmail.org>
To: public-qt-comments@w3.org
Given the query:

	let $x := <p>It was the best of times, it was the worst of times.</p>
	return $x contains text "best" ftand "worst" window 6 words

having the tokenization of:

	It(1) was(2) the(3) best(4) of(5) times(6)
	it(7) was(8) the(9) worst(10) of(11) times(12)

should return true, no?  (It does return true for "window 7 words", however.)

If one actually types in the code given in the spec for fts:ApplyFTWordWindow() into an XQuery processor, it returns no matches.

Is there an off-by-one error in fts:ApplyFTWordWindow()?

- Paul
Received on Wednesday, 2 June 2010 05:36:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:31 UTC