Welcome to MSDN Blogs Sign in | Join | Help

Enabling Wildcard Search in Sharepoint

This walkthrough will guide  you how to enable wild search using SPS, you need to do the following:

  1. Export the search result web part.
  2. Customize the DWP file, add query to enable the wild search criteria
  3. Import the web part back to SPS and drop it within search page area.

 

Here are the details:

  1. Go to your search page. By default, you won’t be able to modify it, go to this link to enable the shared mode
    http://nama_server/search.aspx?mode=edit&view=shared
  2. Modify the Shared Page, and export the search result Web Part (just save it in your desktop, by default it has *.dwp extension)
  3. The Webpart file (DWP) is basically XML File, so you can open it using Notepad. Go find this section : “QueryTemplateWherePart”
  4. Add the following code in the END of the section to enable the wide search : OR CONTAINS("urn:schemas-microsoft-com:sharepoint:portal:profile:PreferredName", '"%__keywordinput__%"') RANK BY COERCION(multiply, 0.01)
    OR CONTAINS(#WeightedProps, '"%__keywordinput__%"')
  5. Save the file, go back to your sharepoint modify page – Add Web Parts – Import
  6. Drop your modified search result web part to your search page. And that’s all, hope this help…

 

_____________
Mario Hadiwinata, MCSD, MCDBA, MCSE, MBS Certified Professional CRM  -  Partner Technology Specialist | Microsoft Indonesia
marioha@microsoft.com | (62-21) 2551-8176

Published Friday, February 17, 2006 3:42 PM by marioha

Comments

No Comments

Anonymous comments are disabled
 
Page view tracker