Enabling Wildcard Search in Sharepoint
This walkthrough will guide you how to enable wild search using SPS, you need to do the following:
- Export the search result web part.
- Customize the DWP file, add query to enable the wild search criteria
- Import the web part back to SPS and drop it within search page area.
Here are the details:
- 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 - Modify the Shared Page, and export the search result Web Part (just save it in your desktop, by default it has *.dwp extension)
- The Webpart file (DWP) is basically XML File, so you can open it using Notepad. Go find this section : “QueryTemplateWherePart”
- 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__%”‘) - Save the file, go back to your sharepoint modify page – Add Web Parts – Import
- 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
Mario Hadiwinata, MCSD, MCDBA, MCSE, MBS Certified Professional CRM - Partner Technology Specialist | Microsoft Indonesia
marioha@microsoft.com | (62-21) 2551-8176