[Zope] indexing and searching for a date

Michel Pelletier michel@digicool.com
Tue, 21 Mar 2000 16:08:29 -0800


Kevin Dangoor wrote:
> 
> ----- Original Message -----
> From: "Anders Holmbech Nielsen" <ahn2@integrator.dk>
> To: <zope@zope.org>
> Sent: Tuesday, March 21, 2000 10:56 AM
> Subject: [Zope] indexing and searching for a date
> 
> > As I found out - you can not index numbers and therefore not search
> > for dates using the zCatalog.
> 
> I don't think this is true. Catalog does not index numbers in TextIndexes,
> but I think a FieldIndex would work fine.

yep.

> I'm pretty sure I've done it (with
> dates, even), but not 100% sure.
> 
> Just make sure you use a FieldIndex, and I think you'll be fine.

Field indexes can index any kind of picklable object value, including
DateTime objects.  This is how searching by date is done on the Zope
site.

-Michel