[Bug 6470] [FT] ordered and/or queries

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





--- Comment #5 from Michael Dyck <jmdyck@ibiblio.org>  2009-02-07 04:19:16 ---
[personal response again:]

(In reply to comment #4)
> 
>  a) 'A B C' ftcontains ('C' | 'A') & ('B') ordered
>
> The intuitive answer might be: 'A' is followed by 'B', so the query will
> yield true.

Correct, it returns true.

> But I'm wondering how this query is to be evaluated, as the
> 'ordered' position filter and the 'ftand' connective are still
> out of scope if the 'ftor' operator is being processed.

By "are still out of scope", I'm guessing you mean something like "have
yet to be procesed". If so, I'm not sure why that's a problem.

- When the 'ftor' operator is processed, it generates two matches, one with
  a StringInclude (SI) for 'C' and one with an SI for 'A'.

- When the 'ftand' operator is processed, it also generates two matches:
  one has an SI for 'C' and an SI for 'B'; the other has an SI for 'A' and
  an SI for 'B'.

- When the 'ordered' filter is processed, it rejects the first match
  (because the 'C' and 'B' don't have that order in the search context)
  and accepts the second (because 'A' and 'B' do have that order in the
  search context).

> The problem might not occur for this query..
> 
>  b) 'A B C' ftcontains ('C' & 'B') | ('A' & 'B') ordered
> 
> ..assuming that the 'ftor' operator evaluates the position filters.

Returns true.

> A similar problem arises for query h) from my last post:
> 
> >   h) ('A' & !'B') ordered
> > The search context must contain an 'A' that is not followed by a 'B'.
> 
> Your answer seems intuitive to me, but again I'm wondering how the query
> evaluation could look like. Let's take the following query:
> 
>  c) 'B A' ftcontains ('A' & !'B') ordered
>
> This query should probably return 'true' as 'A' is not followed by a 'B'.

Correct, returns true.

> But the last query:
> 
>  d) 'B A' ftcontains ('A' & !'B')
> 
> will return false as the source string contains 'A' and 'B'. 

Correct, returns false.


-- 
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 Saturday, 7 February 2009 04:19:25 UTC