Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] OR query does not yield any result
@ 2008-01-31  6:24 Manish Sapariya
  2008-02-19 17:55 ` William Morgan
  0 siblings, 1 reply; 5+ messages in thread
From: Manish Sapariya @ 2008-01-31  6:24 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [sup-talk] OR query does not yield any result
  2008-01-31  6:24 [sup-talk] OR query does not yield any result Manish Sapariya
@ 2008-02-19 17:55 ` William Morgan
  2008-02-20  9:02   ` Manish Sapariya
  2008-02-20  9:18   ` Manish Sapariya
  0 siblings, 2 replies; 5+ messages in thread
From: William Morgan @ 2008-02-19 17:55 UTC (permalink / raw)


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>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [sup-talk] OR query does not yield any result
  2008-02-19 17:55 ` William Morgan
@ 2008-02-20  9:02   ` Manish Sapariya
  2008-02-25 17:41     ` William Morgan
  2008-02-20  9:18   ` Manish Sapariya
  1 sibling, 1 reply; 5+ messages in thread
From: Manish Sapariya @ 2008-02-20  9:02 UTC (permalink / raw)


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,
> 

-- 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [sup-talk] OR query does not yield any result
  2008-02-19 17:55 ` William Morgan
  2008-02-20  9:02   ` Manish Sapariya
@ 2008-02-20  9:18   ` Manish Sapariya
  1 sibling, 0 replies; 5+ messages in thread
From: Manish Sapariya @ 2008-02-20  9:18 UTC (permalink / raw)


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,
> 

-- 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [sup-talk] OR query does not yield any result
  2008-02-20  9:02   ` Manish Sapariya
@ 2008-02-25 17:41     ` William Morgan
  0 siblings, 0 replies; 5+ messages in thread
From: William Morgan @ 2008-02-25 17:41 UTC (permalink / raw)


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>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-02-25 17:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-31  6:24 [sup-talk] OR query does not yield any result Manish Sapariya
2008-02-19 17:55 ` William Morgan
2008-02-20  9:02   ` Manish Sapariya
2008-02-25 17:41     ` William Morgan
2008-02-20  9:18   ` Manish Sapariya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox