W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2009

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

From: <bugzilla@wiggum.w3.org>
Date: Sat, 07 Feb 2009 04:19:16 +0000
To: public-qt-comments@w3.org
Message-Id: <E1LVeey-0004LX-NY@wiggum.w3.org>


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

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