Alec Tang

Professional Web Developer/ Web Designer

I build websites based on the latest web standards providing the best possible solution to your company

  • Home
  • About
  • Portfolio
  • Contact
  • Blog
Subscribe Feed

Customise Advanced Search box in Sharepoint

Posted by Alec on Mon, 11 Jan 2010, in Sharepoint   

Recently I had the chance to customise the advanced search box of Sharepoint server portal, with own fields/ properties and defined a seperate scope for it. It was not hard, but needs some research and practical experiments. Sharepoint comes with an advanced search web part, and that is customisable, particularly when we want to enable users to search based on custom property/ attributes.

Say we have a list, and we want to display an advanced search box above the all items table. All we have to do is, edit the page and insert an advanced search box above it.

In the Search box settings, we can enable many options such as "Show all words", "Show exact phrases", etc. It's all depend on your favor. The important part is the scope setting. There is an xml strings in "Properties" and this defines what properties can the user filter the search on. To define our own propeties of the list, as well as the scope, we need to go the central administration portal.

In central administation, go to SharedServices, Search Settings, Metadata property mappings. This is where we add in our own fields. Hit "New Managed Property", enter your field name, and in "Mappings to crawled properties", click "Add Mapping", search your own field. After that, hit ok and ok. Once all fields have been added, we need to go to "Content sources and crawl schedules and recrawl the site. This will take some minutes.

 

Comments Be the first to write a comment. Comment gets approved before publishing.

Post Your Comment

 
 
   

Search

 

Latest Posts

  • List Attachments Open as Read Only
  • Website finally back up from Google's block
  • Sys.WebForms.PageRequestManagerParserErrorException
  • How Google treats Content Duplication
  • How to create HTML column in Sharepoint List View
  • How Sharepoint stores User Data
  • How to send email via Sharepoint
  • Malaysia Airlines launched iPhone Application: MHMobile
  • Intranet, the next big market
  • How to retrieve and update from a multi choice Checkboxlist ...

Categories

  • Browsers (1)
  • Projects (1)
  • Web Design (7)
  • Sharepoint (21)
  • Telerik (5)
  • Wordpress (1)
  • Internet (2)
  • SQL (5)
  • LINQ (3)
  • ASP.NET C# (34)
  • JavaScripts (3)
  • IIS (0)
  • Industry (1)
  • Tools (8)
  • SEO (5)

Archives

  • September 2010 (1)
  • August 2010 (1)
  • May 2010 (1)
  • April 2010 (3)
  • March 2010 (5)
  • February 2010 (4)
  • January 2010 (11)
  • November 2009 (3)
  • October 2009 (1)
  • September 2009 (9)
  • August 2009 (3)
  • July 2009 (4)
  • June 2009 (1)
  • May 2009 (2)
  • April 2009 (8)
  • March 2009 (6)
  • February 2009 (2)
© Copyright 2009 Alec Tang. All Rights Reserved.
This site is conform to W3C Standard XHTML & CSS