Subject: [sup-talk] Boolean "OR" operator in query?

From: [email-masked] (Guarded Identity)
Date: Wed, 27 Feb 2008 20:29:39 -0600

Hi,

I'm using the latest git Sup, and I tried to do the following query:

    label:admin OR label:info

Here's an excerpt from the log (a little formatting to dodge wrapping)

    Wed Feb 27 19:49:18 -0600 2008:
        normalized "label:admin OR label:info" to "label:admin label:info"

    Wed Feb 27 19:49:18 -0600 2008:
        got 1 results for query (offset 0) +(+label:admin +label:info)
        -label:spam -label:deleted

It's pretty clear the boolean operators are getting dropped.  It also easy to
find the section of code in index.rb that's doing this conversion.  I read a
little of the Ferret API and also some of the comments in
Redwood::Index.parse_user_query_string, but I've not yet reached an
understanding of why the operators are being dropped.

So I got lazy and thought I'd ask the list because I'd like to have the ability
to have disjunctions in queries.

Thanks for your help,
Sukant

---

From: [email-masked] (William Morgan)
Date: Thu, 28 Feb 2008 08:59:37 -0800

Reformatted excerpts from Guarded Identity's message of 2008-02-27:
> So I got lazy and thought I'd ask the list because I'd like to have
> the ability to have disjunctions in queries.

The latest git next has the query normalization stuff removed because it
was breaking several things, including this.

-- 
William <wmorgan-sup at masanjin.net>