Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: Gregor Hoffleit <gregor@hoffleit.de>
To: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] searches
Date: Thu, 05 Aug 2010 16:25:08 +0200	[thread overview]
Message-ID: <1281018239-sup-4803@sam.mediasupervision.de> (raw)
In-Reply-To: <1281016089-sup-4418@guava.lanl.gov>

* John Bent <johnbent@lanl.gov> [Do Aug 05 15:49:38 +0200 2010]
> Excerpts from Brian May's message of Wed Aug 04 20:14:14 -0600 2010:
> > Where is the best documentation on performing searches?
> > 
> > I have noticed some quirks:
> > 
> > \label:VLSCI
> > 
> > finds nothing, even though lots of emails are labeled VLSCI.
> > 
> > \label:vlsci
> > 
> > finds all these emails.
> > 
> > \label:vlsci \label:unread
> > 
> > finds all vlsci OR unread emails - I would have assumed that should be AND?

I fell into these traps as well (there was a thread in this list two
months ago, search for this message: 1276181871-sup-2536@zyrg.net).

I started to rewrite the page SearchingMail in the Wiki:
http://sup.rubyforge.org/wiki/wiki.pl?SearchingMail

The information on that page should be correct, but certainly is not
complete. Neither is it easy to grok.

As a start, the basic query language is described in
http://xapian.org/docs/queryparser.html.


Some stumbling points about searching in Sup:

- By default, query terms are combined with AND
- Exception: Query terms within the same field type are combined as OR

I.e. a search for "label:ruby-talk subject:\[ANN\]" (without the
quotes!) is equivalent to "label:ruby-talk AND subject:\[ANN\]".

In contrast, the search "subject:apples subject:oranges" is equivalent
to "subject:apples OR subject:oranges"!

> The above looks like you are doing them one at a time.  If you do this:
> 
> \label:vlsci label:unread
> 
> that should do what you want.

Wrong. As these are two queries in the same field type, they are ORed.

The get the result you're expecting, you must search for
"label:vlsci AND label:unread" (without the quotes).

> Also, on the search results view, hitting '|' let you refine the search
> so:
> \label:vlsci | label:unread
> 
> should also do what you want.

Again, this is wrong. Refining a search will just let you append or 
edit the current query. I.e. after hitting '|' you should append
"AND label:unread" to the query string.


I would really welcome if somebody with a little more insight than me
could take the time to update the documentation about searching in Sup.


    Gregor Hoffleit
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


  reply	other threads:[~2010-08-05 14:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-05  2:14 Brian May
2010-08-05 13:49 ` John Bent
2010-08-05 14:25   ` Gregor Hoffleit [this message]
2010-08-09  5:59     ` Brian May
2010-08-09 20:19       ` Marc Hartstein
2010-08-05 14:35 ` Mark Alexander

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1281018239-sup-4803@sam.mediasupervision.de \
    --to=gregor@hoffleit.de \
    --cc=sup-talk@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox