[Fwd: Re: Re: [Product-Developers] Catalog search for a custom member type]

Andreas Jung lists at zopyx.com
Tue Jan 13 12:32:25 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stay on the list *and* re-read my former reply.

- -aj

- -------- Original Message --------
Subject: Re: Re: [Product-Developers] Catalog search for a custom member
type
Date: Tue, 13 Jan 2009 13:11:30 +0100
From: SimO <simahawk at gmail.com>
To: lists at zopyx.com
References: <496C65ED.2080904 at gmail.com> <496C6D1B.1070706 at zopyx.com>
<496C6F57.2000001 at upfrontsystems.co.za> <496C74DF.505 at zopyx.com>

Andreas Jung wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 13.01.2009 11:39 Uhr, Hedley Roos wrote:
>   
>>> 'categories' is what kind of index? Usually it should be a KEYWORD index
>>>       
>> My first thoughts as well but he declared it as a StringField and not a
>> multivalued field.
>>     
>
> <shrug>
> The name 'categories' implies something multi-valued. The person asking
> has to provide more accurate details.
> </shrug>
>   
This is the declaration of the field:

   atapi.LinesField('categories',
               mode='rw',
               vocabulary=CATEGORIES,
               regfield=1,
               multiValued=True,
               user_property=True,
               searchable=1,
               [...]

Debug:

>>> app.ic20.portal_memberdata.member1.getCategories()
('item','item','item','...')

index/metadata = FieldIndex "getCategories"

>>> 
app.ic20.portal_catalog.searchResults(portal_type='CompanyMember',SearchableText='Something')

works

>>> 
app.ic20.portal_catalog.searchResults(portal_type='CompanyMember',getCategories='Something')

doesn't work

- -- 
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info at zopyx.com - Phone +49 - 7071 - 793376
Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK
- ------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAklsidkACgkQCJIWIbr9KYzx2wCg2DveyncodeJ84JJwkGO2yKgf
9tIAoNV6SnuiuXpiwRaKKiRHrIc9wli8
=5RpC
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20090113/eb168a68/attachment.vcf>


More information about the Product-Developers mailing list