cancel
Showing results for 
Search instead for 
Did you mean: 

Add new property & existing documents

lmoulin
Champ in-the-making
Champ in-the-making
Hello,
My system is used by users for 6 months.
There are 1 500 000 documents.
I have defined several customized properties.

But now I want to add a new searchable property.
Is it possible to create a new property with a default value for the existing documents?

I want to use this property like criterion in the advanced search window.

Thanks a lot for your help
Luc
2 REPLIES 2

ribz33
Champ on-the-rise
Champ on-the-rise
Just create an aspect.
After you need to make an action(job) which will add this aspect to all documents.

Aspect will contain your property with a default value after you can make it searchable in web-client-config.xml

Dont forget to create a rule to add this aspect to all future document also.

Hope this help.

kevinr
Star Contributor
Star Contributor
You can write a JavaScript that will use Lucene to find all docs and set the aspect/property on those docs. You will need to run the script as admin Smiley Happy The side effect of doing this is that all docs will have the Modified Date updated, but there's not much you can do about that.
http://wiki.alfresco.com/wiki/JavaScript_API

Thanks,

Kevin