Gossamer Forum
Home : Products : Gossamer Links : Discussions :

search.cgi: lt & gt - how to use?

Quote Reply
search.cgi: lt & gt - how to use?
Hi,

I've read a short thread where alex mentioned you could pass '-lt' and '-gt' to search.cgi to specify less than/greater than, but I can't seem to get it to work.

Does anyone know the proper syntax for this?

Thanks - Shaun

Quote Reply
Re: search.cgi: lt & gt - how to use? In reply to
This page is the only one I can think of:

http://admin:admin@www.gossamer-threads.com/...pic=GT/Template.html

The functions section might help, although you may have to go deeper into the manual.

Quote Reply
Re: search.cgi: lt & gt - how to use? In reply to
Thanks for the reply, but that page covers template parsing, and what I'm looking for is the syntax for passing field values to search.cgi and getting a list of links based on a 'less than' or 'greater than' result.

i.e. similar to:

Code:
/search.cgi?Recommended=Yes
... but rather than specifying a 'fixed' value, in this example 'Yes', I'd like to specify a 'greater than' value, e.g.; search.cgi?Rating > 8.00

There's only one thread I can find covering this so far, and the syntax presented doesn't appear to work:

http://www.gossamer-threads.com/...ew=&sb=&vc=1

Anyone else managed to get -gt and -lt searches working?

All the best
Shaun

Quote Reply
Re: search.cgi: lt & gt - how to use? In reply to
bump

Quote Reply
Re: search.cgi: lt & gt - how to use? In reply to
Hmm... According to the thread, it looks like the correct syntax should be

Code:
/search.cgi?Rating-gt=8.00
But I can't get it to work either... I tried it with Rating, Votes, and Hits... no luck.

I'd be interested in this too, if anyone has any input.

Thanks,

Matt Glaspie