AnsweredAssumed Answered

Added new aspect property, how to update existing docs?

Question asked by kumbach on Jan 22, 2009
Latest reply on Feb 6, 2009 by cheffilet
Does anyone know how to do a Lucene search to find all documents that are missing the property of a custom aspect?

Our repository has many documents with a custom aspect attached to them. I have since updated and deployed the aspect to include a new property named "docSubType". Now I need to update all the existing documents and set the new property to a specific value.

If I can figure out a query to get the documents that need to be updated, it's just a matter of writing some Webscript code to do actual the updating.

Any suggestions???

Outcomes