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

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

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

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

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

    Reply
  • 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
  • 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
  • Worked like a champ!

    Reply
  • 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
  • You are amazing bro.. thanks a lot for sharing your great knowledge. This steps worked with charm for me :-)..

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *