W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2008

[Bug 6305] distance filter question

From: <bugzilla@wiggum.w3.org>
Date: Fri, 12 Dec 2008 19:47:40 +0000
To: public-qt-comments@w3.org
Message-Id: <E1LBDzA-0005jn-AE@farnsworth.w3.org>


Michael Dyck <jmdyck@ibiblio.org> changed:

           What    |Removed                     |Added
                 CC|                            |jmdyck@ibiblio.org

--- Comment #1 from Michael Dyck <jmdyck@ibiblio.org>  2008-12-12 19:47:40 ---
[personal response]

> (<p>cat dog bird</p>)[. ftcontains "cat dog" distance at least 2 words]
> As I understood from the spec it should return true, because "cat fog" returns
> only one StringInclude. Right ?

(Presumably, for "fog", you meant "dog".) Yes, I believe it returns true. The
search context is searched for a single phrase, so the distance filter is
basically superfluous. (If you changed the FTPrimary to
    "cat dog" any word
    "cat dog" all words
then a distance filter would have some effect.)

> This query should return true as well. Right ? 
> (<p>cat dog bird</p>)[. ftcontains {"cat", "dog"} phrase distance at least 2
> words]

Yes, I believe so.

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 Friday, 12 December 2008 19:47:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:38 UTC