* [sup-talk] Bug with searching for multiple labels at once @ 2010-06-10 10:39 Gregor Hoffleit 2010-06-10 11:53 ` Mark Alexander 0 siblings, 1 reply; 4+ messages in thread From: Gregor Hoffleit @ 2010-06-10 10:39 UTC (permalink / raw) To: sup-talk I have a strange problem with search strings including multiple labels. I was at the impression that the search label:somelabel label:anotherlabel should find mail with both labels attached (i.e. an AND search for both labels). But it doesn't work that way for me (I'm using Sup next from Git). It returns way more hits than expected. "label:LABELDOESNTEXIST label:list" returns all mails with the label "list" attached, although it should find nothing. In contrast, "label:LABELDOESNTEXIST from:me" returns zero mails, as expected, just as e.g. "label:LABELDOESNTEXIST before:yesterday". "label:LABELDOESNTEXIST is:unread" on the other hand, gives unexpected hits as well (I guess 'is:unread' is converted into a label search?) Regards, Gregor Hoffleit _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sup-talk] Bug with searching for multiple labels at once 2010-06-10 10:39 [sup-talk] Bug with searching for multiple labels at once Gregor Hoffleit @ 2010-06-10 11:53 ` Mark Alexander [not found] ` <1276171687-sup-6993@sam.mediasupervision.de> 0 siblings, 1 reply; 4+ messages in thread From: Mark Alexander @ 2010-06-10 11:53 UTC (permalink / raw) To: Gregor Hoffleit; +Cc: sup-talk Excerpts from Gregor Hoffleit's message of Thu Jun 10 06:39:54 -0400 2010: > I have a strange problem with search strings including multiple labels. > I was at the impression that the search > > label:somelabel label:anotherlabel I ran into this confusing behavior a while back when I upgraded from a ferret index to a Xapian index. It appears that the query language now requires you to use an explicit AND operator between search terms. Without that, the implied operator appears to be an OR. _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <1276171687-sup-6993@sam.mediasupervision.de>]
* Re: [sup-devel] Bug with searching for multiple labels at once [not found] ` <1276171687-sup-6993@sam.mediasupervision.de> @ 2010-06-10 13:05 ` Gregor Hoffleit 2010-06-10 15:01 ` [sup-talk] " Rich Lane 0 siblings, 1 reply; 4+ messages in thread From: Gregor Hoffleit @ 2010-06-10 13:05 UTC (permalink / raw) To: Mark Alexander; +Cc: sup-talk, sup-devel Indeed, I just noticed that the NewUserGuide.txt is much more up-to-date than the Wiki (http://sup.rubyforge.org/wiki/wiki.pl?SearchingMail). As a start, I copied the information from the NewUserGuide to that Wiki page. Still, somebody who knows better should update that page. Furthermore, I marked the information in "Testing Xapian" as obsolete in the Wiki. Still, it is not clear to me what happens without explicit AND or OR operator. "label:somelabel label:anotherlabel" seems to be equivalent to "label:somelabel OR label:anotherlabel". "label:ruby-talk subject:\[ANN\]" seem to be equivalent to "label:ruby-talk AND subject:\[ANN\]". The Xapian QueryParser documentation (http://xapian.org/docs/queryparser.html) is not clear about this either. Regards, Gregor Hoffleit _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sup-talk] [sup-devel] Bug with searching for multiple labels at once 2010-06-10 13:05 ` [sup-devel] " Gregor Hoffleit @ 2010-06-10 15:01 ` Rich Lane 0 siblings, 0 replies; 4+ messages in thread From: Rich Lane @ 2010-06-10 15:01 UTC (permalink / raw) To: Gregor Hoffleit; +Cc: sup-talk Unless you use an explicit AND, boolean terms of the same field will be OR'd. http://trac.xapian.org/ticket/402 _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-06-10 15:01 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-06-10 10:39 [sup-talk] Bug with searching for multiple labels at once Gregor Hoffleit 2010-06-10 11:53 ` Mark Alexander [not found] ` <1276171687-sup-6993@sam.mediasupervision.de> 2010-06-10 13:05 ` [sup-devel] " Gregor Hoffleit 2010-06-10 15:01 ` [sup-talk] " Rich Lane
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox