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

Re: [FT] FTWindow semantics wrong?

From: Michael Dyck <jmdyck@ibiblio.org>
Date: Wed, 02 Jun 2010 00:17:10 -0700
Message-ID: <4C060576.4040900@ibiblio.org>
To: public-qt-comments@w3.org
Paul J. Lucas wrote:
> 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?

No, it should return false. There's a 6-token window covering
     best of times it was the
and one covering
     of times it was the worst
but you need at least a 7-token window to cover
     best of times it was the worst

Received on Wednesday, 2 June 2010 07:17:45 UTC

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