-----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 <[email protected]>
To: [email protected]
References: <[email protected]> <[email protected]>
<[email protected]> <[email protected]>

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: [email protected] - 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-----
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[email protected]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to