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'}
Type should be portal_type. "categories" is the name of your field but
is indexed as "getCategories". Also make sure it is a FieldIndex.
Then {'getCategories': 'something', 'portal_type': 'MyMember'} should work.
Add the path constraint later - it is easier to debug the simple case.
H
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers