Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: manish@gslab.com (Manish Sapariya)
Subject: [sup-talk] OR query does not yield any result
Date: Wed, 20 Feb 2008 14:32:39 +0530	[thread overview]
Message-ID: <1203497807-sup-2137@alioth.gs-lab.com> (raw)
In-Reply-To: <1203443545-sup-3261@south>

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 at gslab.com>] [manish here]
[25985] [Manish Sapariya <manish at gslab.com>] [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,
> 

-- 


  reply	other threads:[~2008-02-20  9:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-31  6:24 Manish Sapariya
2008-02-19 17:55 ` William Morgan
2008-02-20  9:02   ` Manish Sapariya [this message]
2008-02-25 17:41     ` William Morgan
2008-02-20  9:18   ` Manish Sapariya

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=1203497807-sup-2137@alioth.gs-lab.com \
    --to=manish@gslab.com \
    /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