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
hmm, i must admit that I still can't get it to work with simple numbers. I have a field with the number "20002" but it doesn't matter wether i use text or field index it still don't work. Am I forgetting something ?? And yes - I reindex the cataloge before searching. But I will look into the date thing right now!!!
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Regards ------------------------------------------------- Anders Holmbech Nielsen | Tlf: (+45) 70 22 56 00 Software Engineer | Fax: (+45) 70 22 57 00 Integrator Uniware A/S | http:/www.integrator.dk