Wednesday, 19 March 2008

How to include custom columns in SharePoint Search

SharePoint search has few default columns already mapped. In case you are creating your own List and added few columns and you want SharePoint Search engine to include that column in Search result, you have to do following settings.

  1. Go to Central Administration.
  2. Under Shared Services Administration click on your SSP name.
  3. Go to Search -> Search Settings
  4. On "Configure Search Settings" page click on the "Metadata property mappings" settings.
  5. Click on "New managed Property"
  6. Choose the data type of your column in the List (Text/Integer/Decimal/Date Time/YesNo)
  7. Click on the Add mapping and Give few characters of your column name so that SharePoint can search that particular column.
  8. Now choose the column and click Ok.
  9. Now you can find your column in "Managed Properties View" and you can use this Mapped name in your select query.

Note: I had faced one problem while performing above steps. In step 7 while adding the column I was not able to find my column and after struggling a lot I found the solution for the same. Actually when you add any column in the List and if that column doesn't have any data In step 7 that column will not be found so to overcome this issue , before doing above steps make sure you have some data in the field you are interested in mapping in search also make sure after adding the data you have ran the "Full crawl" the site once.

No comments:

Query List/Document Library in Specific Folder

To query SharePoint List or Document Library in specific Folder “ FolderServerRelativeUrl ” as part of the CAML Query Code Snippet ...