Gnutella Forums  

Go Back   Gnutella Forums > Gnutella News and Gnutelliums Forums > General Gnutella Development Discussion
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

General Gnutella Development Discussion For general discussion about Gnutella development.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old July 9th, 2002
Disciple
 
Join Date: May 26th, 2002
Posts: 13
Cakkie is flying high
Default How to react to a query?

Is there a recommendation on how I should interpret a query?

When looking at queries, people all seem to have there own way of searching.

Say a query comes in like:
bush clinton taft washington
Probably, the person who entered this is looking for something on American presidents. He'd expect to get back something like
the life story of bill clinton.pdf
the life story of george bush.pdf

To put it in other words, he's wants to search usign a OR operator.

However, someone else will look for
how to plant a bush.mpg
and doesn't expect to get anything else back than that. He needs an AND operator, and doesn't care for the life story of george bush (can you blame him?)

Any suggestions? Is there a *standard* in this?


Also, some queries end on
urn:sha1:HQ39875SDJHSF09FSDFSDF
or something like that.
Others appear to contain xml

What should I do with them, since I assume these are applications-specific thingies. Must I try to interpret them?


Thanx
Reply With Quote
  #2 (permalink)  
Old July 10th, 2002
Paradog's Avatar
Distinguished Member
 
Join Date: April 5th, 2002
Location: Germoney
Posts: 739
Paradog is flying high
Default

Hm... I have no idea but the queries are usually seen as OR.
Maybe you should check out some sourcecodes of other clients to see how they solved the problem....

By the way Cakkie,
Were you the who voted for my Lynn Cache on PlanetSourceCode?

If you are that Cakkie, thanks!
Reply With Quote
  #3 (permalink)  
Old July 10th, 2002
Connoisseur
 
Join Date: August 9th, 2001
Location: Philadelphia, PA, USA
Posts: 358
cultiv8r is flying high
Default

I don't know about other clients, but I use AND for the keywords.

So "bush clinton taft washington" would not match "How to plant a bush". I do this to allow a bit easier filtering down by the end user, and the fact that an OR would return too many, perhaps mostly irrelevant results.

The alternative would be by using commas. So "bush clinton" is "bush AND clinton"; but "bush, clinton" would be "bush OR clinton". This, because the comma is usually filtered by most clients.

However, there's been several discussions about including Booleans or even REGEXP. As a matter of fact, I intend on using a GGEP extension for that, unless there's a wider accepted GGEP extension that comes out before that.
Reply With Quote
  #4 (permalink)  
Old July 10th, 2002
Disciple
 
Join Date: May 26th, 2002
Posts: 13
Cakkie is flying high
Default

Quote:
Originally posted by Paradog
By the way Cakkie,
Were you the who voted for my Lynn Cache on PlanetSourceCode?

If you are that Cakkie, thanks!
As a matter of fact, yes Back then I didn't really knew what the code did, but I rated it anyway, just because it contained a word document which was quite usefull (and pointed me here).
Reply With Quote
  #5 (permalink)  
Old July 10th, 2002
Disciple
 
Join Date: May 26th, 2002
Posts: 13
Cakkie is flying high
Default

Quote:
Originally posted by cultiv8r
However, there's been several discussions about including Booleans or even REGEXP. As a matter of fact, I intend on using a GGEP extension for that, unless there's a wider accepted GGEP extension that comes out before that.
Can I find any info on this matter (like the GGEP extentions)?


Maybe I should implement some kind of cascading system:
-->exact match --> Yes, return matches
--> No, use AND --> Yes, return matches
--> No, use OR --> Yes, return matches
Reply With Quote
  #6 (permalink)  
Old July 10th, 2002
Connoisseur
 
Join Date: August 9th, 2001
Location: Philadelphia, PA, USA
Posts: 358
cultiv8r is flying high
Default

That's a good way to do it, if you can do that efficiently and fast. There's a LOT of queries you have to process, even on a low number of connections.
Reply With Quote
  #7 (permalink)  
Old July 21st, 2002
On Holiday
 
Join Date: July 20th, 2002
Posts: 185
Syfonic is flying high
Default

Everthing needs to be efficient and fast though
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! Please: mouse doesn't react to LimeWire Idris Open Discussion topics 14 June 23rd, 2005 06:20 AM
Writing Java client.. how should I implement query/query hits? Tw|st3r General Gnutella Development Discussion 1 December 26th, 2004 10:03 PM
query steve_m_t General Gnutella / Gnutella Network Discussion 1 September 6th, 2004 04:04 PM
Limewire is extremely slow to react when I click it's buttons. Any advice? Russell General Mac OSX Support 2 July 16th, 2002 10:53 AM
query cHEssHire User Experience 3 June 19th, 2002 10:43 AM


All times are GMT -7. The time now is 08:07 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.