Enable Wildcard Search by Default in SharePoint 2010

By default, Wildcard search is not enabled in SharePoint! Say for e.g. If you search for “Script” you will get results for the search query. But if you want to search using partial words (“sc” for “Script”) that aren’t complete, You will not get the search results until you add the wildcard character * in your queries (sc*)

Here are the screens to explain the above scenario: Search results for the complete word: Script
enabling wildcard search in sharepoint
Search results for the partial word: Sc
wildcard search on sharepoint
Yes, You can always add a wildcard character * in your queries: E.g. sc* to perform wildcard search in SharePoint 2010. But how to make it default without you/end-user entering the wildcard character every time?

Sure, We can enable wildcard search in SharePoint by default! here is how:

How to Enable Wildcard Search in SharePoint 2010?
To enable Wildcard search in SharePoint Server 2010, Go to:

  • Central Administration >> Application Management 
  • Manage Service Applications >> Pick your Search service Application
  • Click on “Federated locations” under “Queries and Results” from Left navigation
  • Click on “Location Search Results” linkwildcard search for sharepoint 2010
  • Expand the “Location Information” section 
  • Append a * (asterisk) character to Query Template field – Change it from {searchTerms} to {searchTerms}*sharepoint 2010 wildcard search default
  • Scroll down and update the “More Results” Link Template from: results.aspx?k={searchTerms}To: (results.aspx?k={searchTerms}*) . Click “OK” to save changes. Sharepoint 2010 wildcard search

That’s all . We have enabled SharePoint Server 2010 wildcard search! Wait for a moment for the search service to reflect your changes and see the result in action. We’ve typed “sc” as search string and SharePoint returned results for: sc*

sharepoint server 2010 wildcard search

The above method can be use to apply wildcard people search in SharePoint 2010 too!

Salaudeen Rajack

Information Technology Professional with Two decades of SharePoint Experience.

7 thoughts on “Enable Wildcard Search by Default in SharePoint 2010

  • May 26, 2016 at 2:39 PM

    Hello, how to make tha same trick for Sharepoint 2013?

    Reply
  • March 16, 2015 at 5:54 AM

    Quite a hack and only works for one word search queries.

    Reply
  • December 10, 2013 at 3:56 PM

    Does this change allow you to do wildcard searches within a word? For example, search for ipt and have it return results for script and other words that contain ipt?

    Reply
  • October 23, 2013 at 8:23 PM

    This worked for us, but after making this change users started reporting the following error when they tried to click the “view duplicates” option on the search results screen. Any Ideas?

    error: Your query included only common words and / or characters, which were removed. No results are available. Try to add query terms.

    Reply
  • October 22, 2013 at 8:00 PM

    Worked like a champ!

    Reply
  • October 17, 2013 at 10:04 AM

    Thank you so much. You made my day so colorful. Rellay its help me lot to solve my problem. thanks lot once again. Please continue your assitence like this. God bless you. Cheers… 🙂

    Reply
  • September 1, 2013 at 8:33 AM

    You are amazing bro.. thanks a lot for sharing your great knowledge. This steps worked with charm for me :-)..

    Reply

Leave a Reply