cancel
Showing results for 
Search instead for 
Did you mean: 

How can I search a map property?

darkling235
Champ in-the-making
Champ in-the-making
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="cspsSmiley TongueackageId" />
         <show-property name="csps:csmWebPath" />

         <show-property name="csmSmiley TonguerimaryBucket" />
         <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
1 REPLY 1

dhalupa
Champ on-the-rise
Champ on-the-rise
I'm not really sure what evaluator and condition mean, I'm new at Alfresco and any advice would be greatly appreciated.
Thanks

Evaluator means that if a node has an aspect csm:csmAspect applied, in that case configuration inside evaluator tag will be taken into account.