[Zope] ZCatalog and multivalued field
Andreas Jung
andreas at andreas-jung.com
Tue Oct 14 09:09:59 EDT 2003
Sorry, you should check out KeywordIndexes, not FieldIndexes.
-aj
--On Dienstag, 14. Oktober 2003 7:45 Uhr -0500 Matthew Wilbert
<mwilbert at alum.mit.edu> wrote:
> 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 at andreas-jung.com> said:
>> A FieldIndex is your friend.
>>
>> -aj
>>
>> --On Montag, 13. Oktober 2003 22:09 Uhr -0500 Matthew Wilbert
>> <mwilbert at 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 at 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 )
>>
>>
>>
>>
More information about the Zope
mailing list