Skip to main content.
home | support | download

Back to List Archive

Searching beetween dates in different propnames

From: Frits van Latum <fritsvanlatum(at)not-real.planet.nl>
Date: Thu Jul 25 2002 - 08:04:19 GMT
Hi,

I have another problem with searching between dates. I am indexing XML data
(bibliographic data) that have two elements/propnames: start and end. This
is to indicate a period. Example:

<record>
<title>The sixties</title>
..
<start>1965</start>
<end>1975</end>
</record>

So I want to do something like this:

	give me all records that are about the period 1960-1970
		equals:
	give me all records with:  (end >= 1960) AND (start <= 1970)
		equals:
	swish-e ... -L end >= 1960 -L start <= 1970

The example given should be found with this query!

Can Swish do anything like this? If so: what is the correct syntax.


Regards
Frits

-----Oorspronkelijk bericht-----
Van: swish-e@sunsite.berkeley.edu
[mailto:swish-e@sunsite.berkeley.edu]Namens Bill Moseley
Verzonden: woensdag 24 juli 2002 17:55
Aan: Multiple recipients of list
Onderwerp: [SWISH-E] Re: Searching beetween date


On Wed, 24 Jul 2002, David THOMAS wrote:

> I have downloaded and compiled swish-e-2.1-dev-25-2002-07-24.tar.gz
> but the -L option in not available.

Are you running the right binary?  Works for me.

moseley@laptop:~/swish-e/src$ ls -l swish-e
-rwxr-xr-x    1 moseley  moseley    865881 Jul 22 14:34 swish-e

moseley@laptop:~/swish-e/src$ ./swish-e -L
err: -L requires three parameters <propname> <lorange> <highrange>
.


--
Bill Moseley moseley@hank.org
Received on Thu Jul 25 08:07:55 2002