What would be the Query to get exact same result like Windows 7 start menu search for Programs using Windows Search service?

Posted by Somnath on Programmers See other posts from Programmers or by Somnath
Published on 2012-10-26T09:20:59Z Indexed on 2012/10/26 11:16 UTC
Read the original article Hit count: 312

I would like to implement the same search application like Windows 7 using microsoft.search.interop.dll, C#. Currently I'm using System.Kind property to retrieve information regarding the programs from Windows Search but the results set does not look same like Windows 7 search. Order of items are different.

SELECT TOP 3 System.ItemNameDisplay, System.DateAccessed FROM SystemIndex WHERE  System.ItemNameDisplay LIKE 'ad%' AND (System.Kind='Program')

What would be the Query to get exact same result like Windows 7 start menu search for Programs?

As an example : search token = 'ad'

Windows 7 search result

Adobe Reader 9, Add a device, Adobe Photoshop 7.0

Search Result from my code

Adobe ImageReady 7.0 , Adobe Photoshop 7.0 , Adobe Reader 9

© Programmers or respective owner

Related posts about Windows

Related posts about search