Skip to main content.
home | support | download

Back to List Archive

RE: Sorting by swishlastmodified...

From: <Rainer.Scherg(at)>
Date: Fri Apr 06 2001 - 07:40:46 GMT
> -----Original Message-----
> From: David Wood []
> Sent: Friday, April 06, 2001 5:01 AM
> To: Multiple recipients of list
> Subject: [SWISH-E] Sorting by swishlastmodified...
> Hi folks,
> Using '... -s swishlastmodified desc' _almost_ works 
> perfectly.  The only 
> problem I've uncovered is that, if you've created your index 
> via spidering, 
> there's no swishlastmodified stored, I guess because the 
> files aren't local 
> and stat'able, and so all dates for spidered content come 
> back as 31 Dec. 

At the moment the lastmoddate for spidering is set to zero in
the develop code.
It's on the todo list to parse the HTTP Last Modified field,
instead of using a filedate (which may be wrong).

> 1969!  But don't nicely behaved web servers pass a Last Modified HTTP 
> header to clients?  If so, might we be able to use that to set 
> swishlastmodified when creating a spider-generated index?
> One other small enhancement request in this area would be for -x 
> <swishlastmodified fmt="..."> to support a fmt of just giving 
> straight 
> seconds since the epoch back.  Strangely enough strftime 
> doesn't seem to 
> offer that.

<swishlastmodified fmt=/%d/>   try this for epoch seconds ;-)
The docs are not uptodate I guess...


This Mail has been checked for Viruses
Attention: Encrypted Mails can NOT be checked !

* * *

Diese Mail wurde auf Viren ueberprueft
Hinweis: Verschluesselte Mails koennen NICHT geprueft werden !
Received on Fri Apr 6 07:41:47 2001