cancel
Showing results for 
Search instead for 
Did you mean: 

Making a custom datatype

darkling235
Champ in-the-making
Champ in-the-making
We've been trying to get a searchable map<String, Integer> property into an aspect in ALfresco. The map is in there correctly but it does not seem to be searchable.

I created the map by creating a reference to type d:any and tried to run queries on it. This has failed. I have been told that it is possible to work with maps as datatypes by creating our own custom datatypes and using a custom analyzer to tell lucene how to search it.

Can anyone tell me if this is correct? I am doing my own research but maybe someone can stop me from going too far down a dead end.
Thanks
1 REPLY 1

pmonks
Star Contributor
Star Contributor
Just out of interest, did you register your aspect properties as being indexed?  Without that they won't get indexed into Lucene and hence won't be searchable.

Details on how to do this are at http://wiki.alfresco.com/wiki/Data_Dictionary_Guide and http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/repository/config/alf...