- Windows Indexing Service
Windows indexing service is a service in the
Windows NT (Separately in free Windows NT Option Pack),Windows 2000 and laterWindows NT -family of operating systems that allows searching on PCs and corporatecomputer network s. It is an operating system level service that maintains an index of most of the files on a computer and updates them without user intervention.History
The first incarnation of the indexing service was shipped in August 1996 as a content search system for Microsoft's web server software,
Internet Information Services . Its origins, however, date further back to Microsoft's Cairo operating system project, with the component serving as the Content Indexer for theObject File System . Cairo was eventually shelved, and with it OFS, but the content indexing capabilities would go on to be included as a standard component of later Windows desktop and server operating systems, starting withWindows 2000 .In
Windows Vista , the content indexer was replaced with the Windows Search indexer which is enabled by default. Indexing Service is still included with Windows Vista but is not installed or running by default.Search interfaces
Comprehensive searching is available after initial building of the index, which can take up to hours or days, depending on the size of the specified directories, the speed of the hard drive, user activity, indexer settings and other factors.
Once the indexing service has been turned on and has built its index it can be searched in three ways.
The search option available from the
Start Menu will use the indexing service if it is enabled and will even accept complex queries. Searching using Indexing service works also onUNC paths and/or mapped network drives if the sharing server indexes appropriate directory and is aware of it's sharing. Queries can also be performed using either the Indexing Service Query Form in the Computer Management application or alternatively using third party interface applications such as 'Aim at File' or 'Grokker Desktop'.Indexing Service can also be easily accessed using popular scripting languages such as VBScript - see ASP sample of Web based interface to pdf archive below:
<span class="w">PDF</span> - <span class="w">Search</span> <span class="w">Page</span> <%Dim strQuery ' The text of our queryDim objQuery ' The index server query objectDim rstResults ' A recordset of results returned from I.S.strQuery = Request.QueryString("query") 'Server.URLEncode(Request.QueryString("query"))
If strQuery <> "" Then Set objQuery = Server.CreateObject("ixsso.Query") With objQuery .Catalog = "pdf" 'name of catalogue - CHANGE to your catalogue name. Also make sure it's assigned to appropriate web !!! .Query = strQuery .MaxRecords = 100 .SortBy = "rank [d] " .Columns = "filename, vpath, size, write, DocTitle" End With
on error resume next
Set rstResults = objQuery.CreateRecordset("nonsequential")
If (Err.number <> 0) or rstResults.EOF Then Response.Write "Sorry. No results found." Else
%>
<%Do While Not rstResults.EOF %><% rstResults.MoveNext Loop %>
<%Filename Size Date Title "><% = rstresults.fields("Filename") %> <% = rstresults.fields("size") %> <% = rstresults.fields("write") %> <% = rstresults.fields("DocTitle") %> End If SET strQuery = Nothing Set objQuery = Nothing Set rstResults = NothingEnd If%>
Restrictions
The following restriction applies to version 2.0 of Index Server. When running Indexing Service, Index Server does not detect changes to a catalog if the data is located on a mounted partition. Indexing Service does not support mounted volumes because of limitations in the underlying file system notification systems. [cite web | url = http://support.microsoft.com/kb/319506 | title = INFO: Index Server Does Not Support Mounted Volumes | accessdate = 2007-09-16]
References
External links
* [http://msdn2.microsoft.com/en-us/library/ms951563.aspx History of the Windows Indexing Service]
* [http://msdn2.microsoft.com/en-us/library/ms689644.aspx Indexing Service Start Page] - from the MSDN Library Archive
* [http://msdn2.microsoft.com/en-us/library/ms689718.aspx What is Indexing Service] - from the Microsoft Platform SDK
* [http://www.theinquirer.net/default.aspx?article=20214 Howto use Indexing Service on Windows 2000 and XP]
Wikimedia Foundation. 2010.