I have worked in several projects with the search engine of SharePoint 2007 and one of the things that did several times was create a custom metadata properties mappings to create custom scope, extend the advanced search page and more. But the problem is not creating them in the Shared Service Provider of SharePoint, the problem was migrate them to another Shared Service Provider or farm to install a production server, I need create them again in the new environment.
Then, first create an engine to migrate the properties from a Shared Service Provider to another using a console program and a XML file. With the engine working, I could migrated the properties created in a Shared Service Provider to another. Once tested the engine I thought that would be an excellent plug-in in the central administration of SharePoint 2007, I did it.
In SharePoint 2007 we need create the metadata properties in each Shared Service provider as we can see in image 1
But, what happen when we have a lot of SSP in the farm or a lot of farms to configure the search and to have our properties are available? is a hard work.
With the tool we could export or import properties easier and faster between several Shared Services Providers. In the image 2 we can see the home page of the tool.
As we can see in the image 3, we have a control to select the Shared Service Provider in the Farm of SharePoint 2007
We must select the properties that we want export and select the link “Export” in the top of the tool as we can see in image 4
The next step is to save the XML file that the tool will generate with all information of the properties selected. In the section 1 we can see an example of XML file generated by the tool.
The file had all information of the property and the mappings created in SharePoint. We can create a XML from the scratch using a blank XML selecting the link “Downloading Sample XML” in the tool bar, as we can see in image 4.
In the image 5 we can see the import section where we are going to load the XML with the information of properties.
In the image 6 we can see one of the errors that the tool throws. This error is because the mappings defined in the XML file not exist in the Shared Service Provider selected. But the property will be created in the SSP without a mapping associated.
In the image 7 we can see the error thrower by the tool when the property exists in the Shared Service Provider of SharePoint.
In the image 8 we can see the message loaded by the tool when the property was imported well.
To install the tool, we must do a deploy of a WSP in the site of the Central Administration of SharePoint. Once the WSP is deployed, we need active a feature in the site feature of the central administration as we can see in image 9.
When the feature is activated in the central administration a new section was created in the “Application Management” as we can see in image 10
To download the solution, you can enter to CodePlex site or my SkyDrive. In the zip file there are 2 bats to install the WSP. The installation bat only installs the WSP in SharePoint. The deploy in the site of central administration is manually.