Skip to main content.
home | support | download

Back to List Archive

Re: Timestamp and -L option

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Fri Feb 28 2003 - 14:32:37 GMT
On Fri, 28 Feb 2003, David THOMAS wrote:

> >>It will if you zero pad and use string comparisons.
> PropertyNames DATE
> 
> DATE (timestamp format) is considered as a string. 
> 
> The comparison with -L does not work. I think I miss something
> I need to find document   > 63166608000 and document < 64166608000

What doesn't work?  Please show your test case when you post.

$ cat 1.html
<html>
<head>
<title>Found me!</title>
<meta name="date" content="63166608001">
</head>
<body>bodyword</body>
</html>

$ cat c
Propertynames date

$ ./swish-e -w not d -L date 63166608000 64166608000
# SWISH format: 2.3.4
# Search words: not d
# Removed stopwords: 
# Number of hits: 1
# Search time: 0.001 seconds
# Run time: 0.029 seconds
1000 1.html "Found me!" 119
.

$ ./swish-e -w not d -L date 63166608000 63166608000    
# SWISH format: 2.3.4
# Search words: not d
# Removed stopwords: 
err: no results
.


-- 
Bill Moseley moseley@hank.org
Received on Fri Feb 28 14:33:10 2003