What would be the Query to get exact same result like Windows 7 start menu search for Programs using Windows Search service?
- by Somnath
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