Using the "A word or phrase in the file" search criterion may not work
This article was previously published under Q309173 On This PageSYMPTOMS
When you search for files that contain text by using the A word or phrase in the file search criterion, the search results may not contain files that contain the text that you specified. For example, .log, .dll, .js, .asp, .xml, .xsl, .hta, .css, .wsh, .cpp, .c, or .h files, or files with no file name extension, may not appear in the search results even if the files contain the text that you specified. This problem may occur even if you specified the file name or type in the All or part of the file name box.
CAUSE
A filter component is not registered for the file type that contains the text that you specified, or the filter component ignored the text that you specified. For a file type to be included in the search results when you use the A word or phrase in the file search criterion, a valid filter component must be registered for that file type. Windows XP registers filter components only for file types that are associated with common document types. The standard filter components in Windows XP include:
In Microsoft Windows 2000 and earlier versions of Windows, all files are searched for the content that you specify. Windows XP does not search all file to enhance the performance of searching and to avoid extraneous results. This behavior occurs whether or not you use the Indexing service when you search. RESOLUTIONMethod 1To resolve this problem for the following types, obtain the latest service pack for Windows XP or install the "Windows XP Application Compatibility Update, October 25, 2001" from the Windows Update Web site.
.386
For more information about this update, click the following article number to view the article in the Microsoft Knowledge Base:
.aifc .aiff .asm .asx .au .AudioCD .bkf .bmp .c .cda .cpl .cpp .css .csv .cur .cxx .def .DeskLink .dib .drv .dvd .emf .fnd .folder .gz .h .hpp .hta .htt .hxx .idl .inc .ivf .jfif .jpe .jpeg .js .latex .log .m1v .m3u .MAPIMail .mid .midi .mp2 .mp2v .mpa .mpe .mpeg .mpg .mpv2 .mydocs .pl .rle .rmi .png .rc .rtf .sit .snd .tgz .url .vxd .wax .wm .wma .wmp .wmv .wmx .wmz .wsz .wvx .xbm .xml .xsl .ZFSendToTarget 309447 (http://support.microsoft.com/kb/309447/)
Content search does not search all file types for the specified string
For more information about how to obtain the latest service pack for Windows XP, click the following article number to view the article in the Microsoft Knowledge Base:
322389 (http://support.microsoft.com/kb/322389/)
How to obtain the latest Windows XP service pack
To resolve this problem for other file types, install a program that registers a filter for the file type that you want to search. If no program that provides a filter is available, you can use the plain text filter for a file type. To do this, add a PersistentHandler key under the file type key in HKEY_CLASSES_ROOT and set its (Default) string value name to the following value:
{5e941d80-bf96-11cd-b579-08002b30bfeb}
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756 (http://support.microsoft.com/kb/322756/) How to back up and restore the registry in Windows For example, to use the text filter provider for .zzz files, the following registry setting should exist: HKEY_CLASSES_ROOT\.zzz\PersistentHandler\(Default) = {5e941d80-bf96-11cd-b579-08002b30bfeb}
After you add this value to the registry, you must log off and then log back on to make the change take effect.NOTES:
Method 2To configure Windows XP to search all files no matter what the file type, obtain the latest service pack for Windows XP and then turn on the Index file types with unknown extensions option.If you use this method, Windows XP searches all file types for the text that you specify. This can affect the performance of the search functionality. To do this:
322756 (http://support.microsoft.com/kb/322756/) How to back up and restore the registry in Windows Network administrators can configure this setting by modifying the registry. To do this, set the FilterFilesWithUnknownExtensions DWORD value to 1 in the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex
For more information about how to obtain the latest service pack for Windows XP, click the following article number to view the article in the Microsoft Knowledge Base:
322389 (http://support.microsoft.com/kb/322389/)
How to obtain the latest Windows XP service pack
MORE INFORMATION
Filter components are included as part of the Indexing service, which is a base service in Windows XP that extracts content from files and constructs an indexed catalog to facilitate efficient and rapid searching. The Indexing service extracts the content by filtering--by using filter components that understand a file's format. A filter component implements the IFilter interface, which supplies methods to read a file to extract text and properties. The Indexing service then merges the extracted information into catalogs of indexes for efficient searches. For additional information about the IFilter interface, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/ms691105.aspx (http://msdn2.microsoft.com/en-us/library/ms691105.aspx) APPLIES TO
| Article Translations
|

Back to the top
