[Bug 6305] distance filter question

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6305


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
or
    "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