Friday, 17 February 2012

Advanced Search(Manage Metadata column in SharePoint Library)

Create Column in SharePoint Document library in the name of  "Employees" and column type as 'Metadata'

Terms and Term Sets in SharePoint

Managed Metadata

Managed metadata is a hierarchical collection of centrally managed terms that you can define, and then use as attributes for items in Microsoft SharePoint Server 2010. - MSDN (http://msdn.microsoft.com/en-us/library/ee559337.aspx). The terms that are created can be used to tag content in SharePoint making it easier to search for items or categorize and filter them. In SharePoint 2010, the hierarchy starts with the Managed Metadata Term Store and is organized by Groups which contain TermSets which in turn contain Terms that can also contain other Terms. The image below is a sample to demonstrate this organization.
Image1.PNG

Creating Taxonomy Terms and TermSet

To create Managed Metadata through the UI in SharePoint 2010, you use the Term Store Management Tool, which can be accessed either from the Managed Metadata Service in the Central Administration site:
Image2.PNG
or from the Term store management link on the Site Settings page of a Site:
Image3.PNG
Once in the management tool, to add a new Managed Metadata group, hover over the end of the Managed Metadata Service item to expose an arrow and click to expand the menu then click the New Group menu item.
Image4.PNG
After the group has been added, you will see on the right side of the screen several areas that can be used to designate managers and contributors for the Group. Since these setting are similar to other types of configuration in SharePoint, I won't discuss it here and continue to concentrate on the creation of the Term Sets and Terms.
After the Group has been created, you can use the menu on it to create a Term Set.
Image5.PNG
We'll skip the Import Term Set item for the moment and just create a New Term Set. Once again, after the Term Set has been created, you will see the different settings that can be applied to it on the right.
Using the menu once again on the Term Set, there are a few more options that are available at the Term Set level.
Image6.PNG


upload as .csv file format


<PropertyDefs>       
<PropertyDef Name="Path" DataType="text" DisplayName="URL"/>       
<PropertyDef Name="Size" DataType="integer" DisplayName="Size (bytes)"/>       
<PropertyDef Name="Write" DataType="datetime" DisplayName="Last Modified Date"/>       
<PropertyDef Name="FileName" DataType="text" DisplayName="Name"/>       
<PropertyDef Name="Description" DataType="text" DisplayName="Description"/>       
<PropertyDef Name="Title" DataType="text" DisplayName="Title"/>       
<PropertyDef Name="Author" DataType="text" DisplayName="Author"/>       
<PropertyDef Name="DocSubject" DataType="text" DisplayName="Subject"/>       
<PropertyDef Name="DocKeywords" DataType="text" DisplayName="Keywords"/>       
<PropertyDef Name="DocComments" DataType="text" DisplayName="Comments"/>       
<PropertyDef Name="CreatedBy" DataType="text" DisplayName="Created By"/>       
<PropertyDef Name="ModifiedBy" DataType="text" DisplayName="Last Modified By"/>
<PropertyDef Name="Employees" DataType="text" DisplayName="Employees"/>  

<ResultTypes>       
<ResultType DisplayName="All Results" Name="default">           
<KeywordQuery/>          
<PropertyRef Name="Author" />           
<PropertyRef Name="Description" />           
<PropertyRef Name="FileName" />           
<PropertyRef Name="Size" />           
<PropertyRef Name="Path" />           
<PropertyRef Name="Write" />           
<PropertyRef Name="CreatedBy" />           
<PropertyRef Name="ModifiedBy" />
<PropertyRef Name="Employees" /> 
</ResultType>       


Need to Map Employees(Managed Metadata) column with the above Property Employees(Advanced Search property)



Now we can able to search datas based on Items in the Employees column

No comments:

Post a Comment