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

On 13.01.2009 10:59 Uhr, SimO wrote:
> Hi all,
> 
> I have my custom member type (membrane+remember) which has a StringField
> named "categories"
> 
> and I need to filter my custom search on the content of this field.
> 
> I added index and metadata (both called "categories").
> 
> If I search for it with the basic Plone search, passing the category in
> the SearchableText index
> 
> I can find what I'm looking for but if I try to search passing the name
> of the field/index it doesn't work.
> 
> Here's the query that works: {'SearchableText': 'something', 'path':
> {'query': '/ic19'}, 'Type': 'MyMember'}
> 
> Here's the query that doesn't work: {'categories': 'something', 'path':
> {'query': '/ic19'}, 'Type': 'MyMember'

'categories' is what kind of index? Usually it should be a KEYWORD index
and likely you are supposed to query a keyword index with *sequence* of
strings and not with a string. Look at The Zope Book 2.7 edition for
further insight.

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

iEYEARECAAYFAklsbRsACgkQCJIWIbr9KYxRjQCg218VPvsgIeNLbRt8CSKO3hXE
zCoAn1+TK7xwjbpq0QEYWBHMXeHvOwj0
=pk4P
-----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