Step by Step: Adding Search Box to a SharePoint page

I found very few articles on how to use the out of the box search web parts for SharePoint.  There is an MSDN article here to provide some background but here is a few steps to get your started.  This one basically provide a direct search to a specific list not on the page using the Search Box web part. Here goes:
  1. Go to your page > Site Actions > Edit Page 
  2. Click Add a Web Part, select the “Search Box” and click Add 
  3. Locate the web part you added and select Edit > Modify Shared Web Part
  4. Navigate to the far right to start configuring the web part; I’ve highlighted a few options below.
Scopes Dropdown:
·   Dropdown Mode: Select the one that works for you. 
·   Dropdown label: This adds test to the left of the scope and can be used to clarify search parameters.
Query Text Box:
·   Query text box label: This place a label to the left of the query text box.
·   Query text box width (in pixels): I like to change the Query Text box width to 400-500 pixels depending on the page as it give users more room type their search.
·   Additional query terms:  This is where you really get to tweak or focus the search. You can add in options such as these; This will only pull back results with this filter. Make sure to check off “Append additional terms to query”
o   contenttype:"Project Documents"
o   scope:”This List: Project Directory”
o   site:”http://yoursite.com”
·   Additional query description label: This places a label below the query text box.
·   Query box prompt string: This temporarily places text in the query text box to prompt the users to type in their query such as “Type your search here”
 Miscellaneous, Appearance, Layout, and Advanced: Set these like you would any other webpart.

Here is an example of the webpart with all options filled in:
If you have trouble setting your Additional query terms, test the query directly in your searchcenter to tune your query before entering it in your search box web part.
Good luck

Related Posts:

  • Pink screen after Xenith Firmware 1.7 upgradeI ran into this after upgrading our Wsye Xenith from 1.6 to 1.7 firmware. We were using the AutoSignoff=yes Shutdown=yes commands in our ini and after users devices were powered down then up again were seeing this. … Read More
  • PVS: An unexpected MAPI error occurredA lovely error Citrix Provisioning Services (PVS)  "An unexpected MAPI error occurred" error. Fortunately, Jeff found the fix and shared it here.  This is a bug in PVS 5.6. Solution: In short, when you edit the … Read More
  • ExecuteNonQuery Failed for databaseThis error happened to us today as we were updating our XenDesktop 5.5 environment to 5.6.  I swear the DBAs changed the perms on us but found out the SQL database failed to the mirrored site.  Anyway it was an easy… Read More
  • Citrix Logon Best Practices and Troubleshooting Citrix Optimization Guide: User Logon This just came out and thought it was timely for some things I'm working on. Best part was Troubleshooting Tools section on page 12 that covered the Edgesight Session Startup Duration … Read More
  • Citrix Success Accelerator for XenDesktop If you haven't seen Citrix's new Success Accelerator for XenDesktop, you should check it out before doing any size deployment (i.e. 10 to 1000s).  I wish we had this 12 months ago when we started our pilot.  It is … Read More

0 comments:

Post a Comment