lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Stövesand <j.stoeves...@finix.de>
Subject AW: Can't get a DateFilter to work
Date Fri, 14 Dec 2001 11:45:02 GMT
Hi,

it is no typo. I thought that a DateFilter will return everything between
"from" (0) and "to" (2008269714990), specified in the parameter list.

Jan

> -----Ursprüngliche Nachricht-----
> Von: tril@pluto.blackwell.co.uk [mailto:tril@pluto.blackwell.co.uk]Im
> Auftrag von Ian Lea
> Gesendet: Freitag, 14. Dezember 2001 12:40
> An: Lucene Users List
> Betreff: Re: Can't get a DateFilter to work
>
>
> Could be just a typo in the email message, but 1008269714990 !=
> 2008269714990.
>
>
> --
> Ian.
> ian.lea@blackwell.co.uk
>
> Jan Stövesand wrote:
> >
> > Hi,
> >
> > I really tried everything to get a DateFilter to work but I failed. :-(
> >
> > What I did was:
> >
> > Indexing:
> >
> > doc.add( Field.Keyword("last-modifed",
> > DateField.timeToString( timeInMillies ) );
> >
> > e.g.
> > millies: 1008269714990
> > field value: 0cv6xr772
> >
> > If i submit a "normal" query, looking for 0cv6xr772 I find the
> entry, i.e.
> > the entry should be indexed correctly.
> > If I search for a text in the body of the element I find about
> 30 entries
> > including the one mentioned above with last-midified=0cv6xr772.
> >
> > If I repeat the same query with
> >
> > DateFilter filter=new DateFilter("last-modified", 0, 2008269714990);
> > Hits hits = searcher.search(query, filter);
> >
> > I do not get any results. What am I doing wrong?
> > Any help appreciated.
> >
> > JAn
>
> --
> To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message