Wildcard Search for MOSS 2007

Wildcard search is a much discussed topic in SharePoint Land and generally I reuse my custom XML Web Part to solve the issue; build the query, issue the query,  read the result XML and transform using XSL.

Downside to this solution is the lack of paging and other functionality (Search Alerts, RSS Feed, Statistics, Paging, …) you get with the out of the box Search Web Parts in Microsoft Office SharePoint Server 2007 or Microsoft Search Server 2008.

So I decided to deep dive into the SearchHiddenResultObject using Reflection and whipped up my own Wildcard Core Results Web Part. Downside with any wildcard search implementation is that you lose some functionalities.

When I was ready to blog my findings I discovered Corey Roth had blogged this already along with his WildcardSearch on Codeplex project. A shame but having discovered his truly excellent blog eased the pain ;)

Anyway here’s the download for mine:

STSADM -o addsolution -filename VNTG.WildcardSearch.wsp
STSADM -o deploysolution -name VNTG.WildcardSearch.wsp -allowgacdeployment -immediate -allcontenturls


Links to this post


Wednesday, 14 Oct 2009 08:36 by Pettsen
GREAT job........... it works with a "*" and without a "*"

Tuesday, 12 Jan 2010 08:08 by HImanshu
Great Post. Keep up the good work

Thursday, 14 Jan 2010 01:05 by Lavleen
Hi..i want to implement a free text search functionality in my web part which will search the text entered in the documents in one of the document library and return the corresponding attachment(document) and its corresponding details. Do you have any idea how this can be done?

Tuesday, 23 Aug 2011 08:40 by Praveer
Nice.. this article is really helpfull.

CAPTCHA Image Validation