This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Dear authors, I have a question about the following queries: (<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 ? This query should return true as well. Right ? (<p>cat dog bird</p>)[. ftcontains {"cat", "dog"} phrase distance at least 2 words]
[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.
At its meeting on 2008-12-22, the Task Force agreed with my response in comment #1. I believe this resolves this issue. Bugzilla doesn't really have a resolution appropriate to "You asked a question and got an answer.", so, somewhat arbitrarily, I'm picking WORKSFORME. If you accept this resolution, please mark the issue CLOSED.