AnsweredAssumed Answered

How can I search a map property?

Question asked by darkling235 on Jan 11, 2008
Latest reply on Jan 13, 2008 by dhalupa
I have a map property in Alfresco that isn't being searched very well. Actually it never seems to match at all.

I added it to our old custom aspect and tried to run advanced searched on it but its not working

I enclose the relevant web-client-config-custom.xml

   <config evaluator="aspect-name" condition="csm:csmAspect">
      <property-sheet>
         <show-property name="csps:packageId" />
         <show-property name="csps:csmWebPath" />

         <show-property name="csm:primaryBucket" />
         <show-property name="csm:buckets" />

         <show-property name="csm:mediaMap" />
      </property-sheet>
   </config>


The mediaMap is defined to be a Map<String, Integer> in the java code. Can anyone tell me how to arrange things so I can search for the strings correctly? Do i need to put the mediaMap in a separate aspect and give it a string match evaluator? I'm not really sure what evaluator and condition mean, I'm new at Alfresco and any advice would be greatly appreciated.
Thanks

Outcomes