Thanks,
just for the record, i hardcoded the mapping:

IDX_METADATA = {
 'Title': 'sortable_title',
 'ExpirationDate': 'expires',
 'ModificationDate': 'modified',
 'EffectiveDate': 'effective',
 'CreationDate': 'created'}

the other metadata seems not to be indexed

> So best option: check the source code and index/metadata definitions of
> the related add-ons (or of Plone).

luckily add-on developers seem to be less imaginative in their naming
then the archetype fathers ;)


On Fri, Nov 19, 2010 at 2:07 PM, Andreas Jung <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Christian Ledermann wrote:
>> Hello,
>>
>> I try to get the relation between an index and its stored metadata in
>> the portal catalog:
>>
>> e.g
>> created  <--> (CreationDate, created)
>> or
>> (Title, sortable_title) <--> Title
>>
>> how do I determine that the Index for 'CreationDate' is 'created'?
>
> There is basically no relationship.
>
> Index names must not correspond with the names of methods or attributes
> being indexed (indexes can have their own configuration about the things
> to be indexed). Metadata names are different - they refer either to a
> method or an attribute with the same name. Blame Archetypes for having
> field names and accessor/mutator methods with different names...
>

>
> - -aj


-- 
Best Regards,

Christian Ledermann

Nairobi - Kenya
Mobile : +254 729495789

<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

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

Reply via email to