lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: sorting by date (XML)
Date Tue, 27 Apr 2004 17:26:17 GMT
Beware of storing timestamps (DateFields, I guess) in Lucene, if you
intend to use range queries (xxx TO yyy).

Otis

--- Michael Wechner <michael.wechner@wyona.com> wrote:
> my XML files contain something like
> 
> <date>
>   <year>2004</year><month>04</month><day>27</day>...
> </date>
> 
> and I would like to sort by this date.
> 
> So I guess I need to modify the Documentparser and generate something
> like
> a millisecond field and then sort by this, correct?
> 
> Has anyone done something like this yet?
> 
> Thanks
> 
> Michi
> 
> -- 
> Michael Wechner
> Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
> http://www.wyona.com              http://cocoon.apache.org/lenya/
> michael.wechner@wyona.com                        michi@apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 


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


Mime
View raw message