Skip to main content.
home | support | download

Back to List Archive

Re: Searching beetween dates in different

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Sun Aug 04 2002 - 14:58:48 GMT
At 05:03 AM 08/04/02 -0700, Frits van Latum wrote:
>See the examples below.

Ok, I indexed that record:

> cat c
DefaultContents XML2
PropertyNamesNumeric  jaar begindatum einddatum
PropertyNames auteur titel

> ./swish-e -i f.xml -c c -T properties -v0
          swishdocpath: 6 (  5) S: "f.xml"
          swishdocsize: 8 (  4) N: "0000000001309"
     swishlastmodified: 9 (  4) D: "2002-08-04 06:45:35"
                  jaar:10 (  4) N: "0000000001992"
            begindatum:11 (  4) N: "0000000001628"
             einddatum:12 (  4) N: "0000000001665"
                auteur:13 ( 22) S: "Royalton-Kisch, Martin"
                 titel:14 ( 58) S: "Drawings by Rembrandt and his circle in
the British Museum"

Now limit to the date range you specified:

> ./swish-e -d '"' -w not dkdk -L begindatum '<=' 1900 -L einddatum '>='
1800 -m 20 -b 1 -p auteur titel jaar begindatum einddatum
# SWISH format: 2.1-dev-25
# Search words: not dkdk
err: no results
.

Now, remove the einddatum '>=' 1800 limit:

> ./swish-e -d '"' -w not dkdk -L begindatum '<=' 1900 -m 20 -b 1 -p auteur
titel jaar begindatum einddatum  
# SWISH format: 2.1-dev-25
# Search words: not dkdk
# Number of hits: 1
# Search time: 0.001 seconds
# Run time: 0.038 seconds
1000"f.xml"f.xml"1309"Royalton-Kisch, Martin"Drawings by Rembrandt and his
circle in the British Museum"0000000001992"0000000001628"0000000001665
.

Can you create a small example like above that doesn't work like you expect?

Maybe there's an "off by one" type of error where the last record in the
result set is not being checked.


>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>
>
>
-- 
Bill Moseley
mailto:moseley@hank.org
Received on Sun Aug 4 15:02:21 2002