On 7/27/02 2:08 PM, Bill Moseley wrote:
> Look for the -s switch at:
> http://swish-e.org/2.2/docs/SWISH-RUN.html#Searching_Command_Line_Arguments
Right - but in the swish.cgi script, the highest rank appears first by
default when sorting by rank, while the oldest date appears first by
default if sorting by date. I would think the default would be that the
most recent docs appear first on a date sort.
To rephrase my question: How can I modify swish.cgi so that the default
sort on date puts newest first, but without affecting sort order for other
sort types?
> You can use modifiers "desc" and "asc" to control the sort order.
>
>> I've studied the scripts but can't see a way to do this (but I'm a perl
>> newbie).
>
> Which script? The example/swish.cgi script should allow you to select and
> sort by date. See http://swish-e.org/Discussion/search/swish.cgi
Right, that's where I initially looked for an answer, and didn't find one.
Pardon my newbie-ness here -- I just want to modify swish.cgi (or a template
or config file, whatever) to yield user-friendly default behavior on the
date sort.
Here's what I've got working so far:
http://journalism.berkeley.edu/search/index.cgi
Thanks a bunch,
Scot
Received on Sun Jul 28 23:57:48 2002