On Mon, Jul 28, 2003 at 11:41:23PM -0700, Ander wrote:
> Hi all:
>
> I'm going to index some files and I've defined a meta tag ("data") to
> store dates. It looks so in the config file:
>
> MetaNames mota data
> PropertyNamesDate data
>
> Now I'm triying to do the following search:
>
> ./swish-e -w 'data>1058832000' -f myindex
>
> But the result is not as expected. There's no any file which data is
> greater than 1058832000 but I'm having results. I'm not sure if this
> searching mode is correct. I mean that I don't know if I can use ">" and
> "<" operator on the search.
> Could anyone help me? Thanks
No you cannot use '>':
Here's an example:
moseley@bumby:~$ cat c
PropertyNamesDate data
moseley@bumby:~$ cat 1.html
<html>
<head><title>Title</title>
<meta name="data" content="1058832000">
</head>
<body>
hi
</body>
</html>
moseley@bumby:~$ swish-e -c c -i 1.html -T properties -v0
swishdocpath: 6 ( 6) S: "1.html"
swishtitle: 7 ( 5) S: "Title"
swishdocsize: 8 ( 4) N: "108"
swishlastmodified: 9 ( 4) D: "2003-07-29 00:01:15"
data:10 ( 4) D: "2003-07-21 17:00:00"
moseley@bumby:~$ swish-e -w hi -H0
1000 1.html "Title" 108
moseley@bumby:~$ swish-e -w hi -H0 -L data '<=' 1058832000
1000 1.html "Title" 108
moseley@bumby:~$ swish-e -w hi -H0 -L data '<=' 1058831000
moseley@bumby:~$ swish-e -w hi -H0 -L data '<=' 1058831999
moseley@bumby:~$ swish-e -w hi -H0 -L data '<=' 1058832001
1000 1.html "Title" 108
moseley@bumby:~$ swish-e -w hi -H0 -L data '<' 1058832001
Warning: EncodeProperty - Invalid char '<' found in string '<'
err: Failed to setup limit by property: Failed to set range for property
'data' values '<' and '1058832001'
.
--
Bill Moseley
moseley@hank.org
Received on Tue Jul 29 07:06:37 2003