Skip to main content.
home | support | download

Back to List Archive

Re: Searching beetween dates in different propnames: Examples

From: Frits van Latum <fritsvanlatum(at)not-real.planet.nl>
Date: Sun Aug 04 2002 - 12:03:46 GMT
Hi,

See the examples below.

-----Oorspronkelijk bericht-----
Van: Bill Moseley [mailto:moseley@hank.org]
Verzonden: zaterdag 27 juli 2002 0:01
Aan: Frits van Latum
Onderwerp: Re: [SWISH-E] Re: Searching beetween dates in different
propnames


On Fri, 26 Jul 2002, Frits van Latum wrote:
>
> But the combination:
>
> dbg: command = /usr/local/bin/swish-e -d '"' -w record=(kunst) -L
begindatum
> 0000 1925 -L einddatum 1900 3000 -m 20 -b 1 -p auteur titel jaar
begindatum
> einddatum -f /usr0/tin-xml/rm/index/main.index|
>
> gives all records.

Can you send me a test document that should not be returned by the above,
but is being returned in error?  It helps if you also show the commands
you are running and swish's output (cut-n-pasted)


-- Bill Moseley moseley@hank.org


Search on 'Rembrandt' without the -L option:

command = swish-e -d '"' -w record=(rembrandt) -m 20 -b 1 -p auteur titel
jaar begindatum einddatum -f /usr0/tin-xml/rm/index/main.index|
# SWISH format: 2.1-dev-25
# Search words: record=(rembrandt)
# Number of hits: 1480
# Search time: 0.013 seconds
# Run time: 0.163 seconds




Same search with -L einddatum '>=' 1800

command = swish-e -d '"' -w record=(rembrandt) -L einddatum '>=' 1800 -m
20 -b 1 -p auteur titel jaar begindatum einddatum -f
/usr0/tin-xml/rm/index/main.index|
# SWISH format: 2.1-dev-25
# Search words: record=(rembrandt)
# Number of hits: 18
# Search time: 0.792 seconds
# Run time: 0.942 seconds

Results are ok!



Now Search on Rembrandt with -L begindatum '<=' 1900

command = swish-e -d '"' -w record=(rembrandt) -L begindatum '<=' 1900 -m
20 -b 1 -p auteur titel jaar begindatum einddatum -f
/usr0/tin-xml/rm/index/main.index|
# SWISH format: 2.1-dev-25
# Search words: record=(rembrandt)
# Number of hits: 1466
# Search time: 0.846 seconds
# Run time: 0.997 seconds

Results are ok (also records with no begindatum element are in the list but
that is no problem).



Now the combination:

command = swish-e -d '"' -w record=(rembrandt) -L begindatum '<=' 1900 -L
einddatum '>=' 1800 -m 20 -b 1 -p auteur titel jaar begindatum einddatum -f
/usr0/tin-xml/rm/index/main.index|
# SWISH format: 2.1-dev-25
# Search words: record=(rembrandt)
# Number of hits: 1466
# Search time: 1.546 seconds
# Run time: 1.697 seconds

It is obvious from the number of results that this is not ok. It should be
18 or less.

The following record is found by this command but the einddatum is not >=
1800.

<?xml version="1.0" encoding="ISO-8859-1"?>
<record set="10" num="10032154">
	<titel>Drawings by Rembrandt and his circle in the British Museum</titel>
	<auteursverm>Martin Royalton-Kisch</auteursverm>
	<plaats>London</plaats>
	<uitgever>British Museum Press</uitgever>
	<jaar>1992</jaar>
	<pag>248 p.</pag>
	<ill>ill.</ill>
	<formaat>29 cm</formaat>
	<tentoonst set="40" num="40007864">Londen, National Gallery,
1992/03/26-1992/05/24</tentoonst>
	<collectie set="42" num="42003324">Londen / British Museum, Department of
Prints and Drawings / 1992</collectie>
	<isbn>0-7141-1640-8</isbn>
	<periode>16XX</periode>
	<onderwerp set="16" num="16000056">tekenkunst</onderwerp>
	<trefwoord set="19" num="19004613">school van Rembrandt</trefwoord>
	<trefwoord set="19" num="19005068">tekeningen</trefwoord>
	<trefw_g set="43" num="43001977">Nederland</trefw_g>
	<begindatum>1628</begindatum>
	<einddatum>1665</einddatum>
	<catdatum>92/05/20</catdatum>
	<wijzdatum>92/06/03</wijzdatum>
	<f10_D0D0>92/01/23</f10_D0D0>
	<itemcode set="1D" num="1D035742">
		<item>1992/0829</item>
		<standplaats>611 F 13</standplaats>
	</itemcode>
	<f10_4849>92/07/17</f10_4849>
	<f10_CC89>*</f10_CC89>
	<auteur set="13" num="13078638">Royalton-Kisch, Martin</auteur>
	<trefw_pi set="13" num="13075755">Rembrandt</trefw_pi>
</record>
Received on Sun Aug 4 12:08:51 2002