How do you use a field index with a field that is potentially multivalued? I couldn't figure it out. Matt On Tue, 14 Oct 2003 09:43:12 +0200, "Andreas Jung" <andreas@andreas-jung.com> said:
A FieldIndex is your friend.
-aj
--On Montag, 13. Oktober 2003 22:09 Uhr -0500 Matthew Wilbert <mwilbert@alum.mit.edu> wrote:
I have an object class in a Product which usually has only one (string) value for particular attribute, but sometimes can have more, which I plan to store as a list of strings. There is no limit to how many of these there could be, although in my present application there would probably not be more than 10.
This isn't a problem except that I would like to be able to search a ZCatalog for objects which have a particular value,whether it is a string or an string element of a list. The range of possible values is essentially infinite. I can see how I could use a TextIndex to do this, but I am trying to figure out if there are any other options. I'm building this in 2.7b2 if that makes any difference.
Any other ideas?
Thanks,
Matt Wilbert
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )