From mboxrd@z Thu Jan 1 00:00:00 1970 From: manish@gslab.com (Manish Sapariya) Date: Wed, 20 Feb 2008 14:32:39 +0530 Subject: [sup-talk] OR query does not yield any result In-Reply-To: <1203443545-sup-3261@south> References: <47A169A5.30801@gslab.com> <1203443545-sup-3261@south> Message-ID: <1203497807-sup-2137@alioth.gs-lab.com> Hi William, Here are the snippets from log and output of devel/console.sh query. =======log sniipet === normalized "manish OR nobodyxyzpqrkljasdf" to "body:manish body:nobodyxyzpqrkljasdf" got 0 results for query (offset 0) +(+body:manish +body:nobodyxyzpqrkljasdf) -label:spam -label:delete normalized "manish or nobodyxyzpqrdalkjdfad" to "+body:manish +body:or +body:nobodyxyzpqrdalkjdfad" got 0 results for query (offset 0) +(+body:manish +body:or +body:nobodyxyzpqrdalkjdfad) -label:spam -label:delete ===================== I was expecting all mails having manish in it to show up, but none were reported. =======console snippet ========= [manish at alioth sup]$ sh ./devel/console.sh [Wed Feb 20 14:25:28 +0530 2008] using character set encoding "UTF-8" [Wed Feb 20 14:25:28 +0530 2008] crypto: detected gpg binary in /usr/bin/gpg [Wed Feb 20 14:25:28 +0530 2008] loading index... [Wed Feb 20 14:25:28 +0530 2008] loaded index of 18324 messages irb(main):001:0> Index.index.search_each("manish OR nobodyxyzpqrkljasdf") { |id, score| m = Index.build_message(id); puts "[#{id}] [#{m.from}] [#{m.subj}]" } [25951] [Manish Sapariya ] [manish here] [25985] [Manish Sapariya ] [Manish here] =============================== Just FYI, as you can see in log snippet 'or' and 'OR' are treated differently. Hope this helps. Regards, Manish Excerpts from William Morgan's message of Tue Feb 19 23:25:11 +0530 2008: > Hi Manish, > > Sorry for the delay in replying. > > Reformatted excerpts from Manish Sapariya's message of 2008-01-30: > > when I press F and give query as "manish OR nobodypqr" it does not > > yield any result. However I do get results when I query the index > > using devel./console.sh. > > The behavior should be the same, except that querying through Sup > automatically removes results from spam, deleted and killed messages. > Could that explain the difference? > > If not, I need a few more details. What version of Sup? Can you give an > dump of the console.sh session, so I can see exactly what you're doing? > Finally, in Sup, when you execute the query, there should be two > corresponding lines in the log: one starting with "normalized" and one > starting with "got XXX results". Can you paste those in to the email as > well? > > Thanks, > --