Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Boolean "OR" operator in query?
@ 2008-02-28  2:29 Guarded Identity
  2008-02-28 16:59 ` William Morgan
  0 siblings, 1 reply; 2+ messages in thread
From: Guarded Identity @ 2008-02-28  2:29 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [sup-talk] Boolean "OR" operator in query?
  2008-02-28  2:29 [sup-talk] Boolean "OR" operator in query? Guarded Identity
@ 2008-02-28 16:59 ` William Morgan
  0 siblings, 0 replies; 2+ messages in thread
From: William Morgan @ 2008-02-28 16:59 UTC (permalink / raw)


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>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-28 16:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-28  2:29 [sup-talk] Boolean "OR" operator in query? Guarded Identity
2008-02-28 16:59 ` William Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox