The Windows Indexing Service is used to index files via the
file system and allow them to be searched through a set of API's. One popular
use of Indexing Services is to provide a website search facility for websites
hosted on Internet Information Services (IIS).
This article describes how to use Indexing Services from
within ASP.NET using C#. The article is "fully .NET friendly," in
that it describes how search results can be retrieved as an ADO.NET DataTable
and displayed in a DataGrid (using a GridView would use near identical code to
that shown). This allows search results to be manipulated and presented in ways
that were not easily possible using classic ASP, such as by making use of the
built in data column sorting functionality, and the ability to use paging for
the search results.
This article assumes that you know how to use Indexing
Services and are familiar with the concepts of creating search catalogs. The
code sample assumes that an Indexing Service search catalog called
"searchcatalog" has already been set up on your web server.
The code samples will work with Index Server on Windows NT
4.0 systems and Indexing Services on Windows Server 2000/2003/XP systems.
Incidentally, if you want to use Index Server with classic
ASP, then read this article: http://aspalliance.com/358_Searching_Index_Server_With_ASP.