Hi, 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. Is this know issue or am I missing something? Thanks and Regards, Manish
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, -- William <wmorgan-sup at masanjin.net>
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,
>
--
Version is sup 0.4 -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, >--
Reformatted excerpts from Manish Sapariya''s message of 2008-02-20:> Here are the snippets from log and output of devel/console.sh query.Thanks! Try in the current git. I think this was due to the query normalization, which I''ve removed. -- William <wmorgan-sup at masanjin.net>