[FT] FTWindow semantics wrong?

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