cancel
Showing results for 
Search instead for 
Did you mean: 

Custom meta data extraction - spliting name/value pairs

shikarishambu
Champ in-the-making
Champ in-the-making
Hi,
I would like to use the default keywords field in document properties to pass all the meta-data related to the custom properties. I want to be able to extract the individual values and apply it to the corresponding custom property on Alfresco. Is this best accomplished using a custom metadata extractor or a script in the space

keywords:"company=companyA;office=officeB;mailstop=XYZ;"

transform to


company:companyA
office:officeB
mailstop:XYZ

Has anyone done something similar?

Thanks
2 REPLIES 2

mehul1511
Champ in-the-making
Champ in-the-making
Hi,
I have the same question since months now. I do not even know how to extract the metadata.

please let me know if you have the answer!!

mrogers
Star Contributor
Star Contributor
You don't say what mimetype you are working with.   Metadata extractors work on a particular mime type.   So if your "keywords" come from a particular mimetype then yes a custom metadata extractor is appropriate.    And you will need a custom metadata extractor to deal with the parsing of your compound keyword property.   Its not hard, you just need to work out how "keywords" maps to key/value pairs.   Those key/value pairs are then mapped onto property/values on the node.

However if, for the sake of argument you are working with word documents only some of which will have this "keywords" property then you will need to work out how to recognise a document with your "keywords" from from another.   It could be that probably want to trigger that by a rule, or a metadata extractor.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.