Windows service settings

Source: Internet
Author: User
Windows Index Service is a desktop search engine provided by windows operating system. By creating indexes in advance, you can search for files on a hard disk. Run as a windows service program. I. Working Method 1. Create an index for the file in the specified path and generate an index file. The path of the index file can be specified. 2. When using the service, you can query the index file without opening the indexed file again. 2. Usage 1. You can specify the Index Service when searching the file content in windows, the search speed can be improved. 2. windows Index Service provides DCOM and other external methods, which can be accessed through the COM interface. 3. It can be combined with SQL server to search by link server with SQL SERVER's full-text search statement. 3. Feature 1: only static summaries (specified length bytes at the beginning of the document) can be provided, and dynamic summaries cannot be generated (similar to Google's text that contains keywords ). 2. When using remote file resources, you need to use the domain name and password to access remote windows Shared Resources for indexing. 3. If the file system to be indexed changes, the index can be automatically updated. 4. When the file system is large, the index file becomes larger and the search performance decreases. 5. When an index is created, the keyword dictionary is limited, and new keywords cannot be added by the user. This will make some words unsearchable, such as C ++ 6, because they are combined with windows systems, supports html, txt, office files, and other formats. If you need to support other files, you can download or write a Filter. windows provides a standard interface for writing a Filter. Currently, all filters available for download are free of charge, except for pdf filters. The Server version of other filters is charged, and the Workstation version is free. IV. Other Desktop Search Engines 1, Google Desktop Search Engine 2, Baidu hard drive search, etc. 5. Summary windows Index Service is suitable for desktop search, the full-text search speed can be improved when the number of files is not large. Some open-source java search engines are usually used for web search, and the famous ones include lucene, which need to be studied. ========================================================== ========================================== Many of my friends on Windows operating system self-contained search function don't catch a cold, the reason is none, because the search speed is too slow. That's why third-party software such as Google Desktop Search and Baidu hard drive search can become popular. In fact, if you are using a Windows 2000 or later operating system, you should activate the Windows Index Service so that you can quickly find the desired files from the index database when searching for files. What is the index Service? Index Service is a system Service. It uses document filters to read the entire document and extract documents and attributes to the Index program. This process is called "Index ". The indexing service can extract and organize information from a group of documents, so that you can quickly and easily access the information through the Windows search function, Index Service Query table or Web browser, this information can contain the text (content) and features and parameters (attributes) of the document ). Once an index is created, you can search for or search for documents that contain keywords, words, and attributes. For example, you can query all documents that contain the word "work, you can also query all Microsoft Office documents compiled by an author. The indexing service returns a list of all documents that meet the search criteria. Open the control panel, and then find "service" from the management tool, as shown in 1. Now you can see the true face of the Index Service. The current index service is disabled. Edit prompt: What is a document filter? Document filter is a software component that explains the structure of a specific type of documents, such as Microsoft Word or HTML documents. The Indexing Service uses filters to extract text content and attribute values of all categories and send them to the indexing engine. The Index Service supports document-type indexing services that use special filters to analyze various files and create reference values available when searching for files. The following document types are supported: HTML Internet Mail and newsgroup. Internet Information Service must be installed. Microsoft Office document text files can be filtered by document. In addition to these built-in document filters, you can also install third-party filters to index other types of files, this allows the Indexing Service to support more file types. For example, after installing Adobe Reader, You Can index the Acrobat PDF file. As mentioned above, the indexing service must be available in Windows 2000 or later versions, and the Indexing Service in the system is disabled by default, how should we start and use the Index Service? 1. Start the Index Service, open the "Control Panel> Administrative Tools> Service" window, and find the Indexing Service. Double-click to open the Properties dialog box. Set the start type to "automatic" or "Manual", and click "application" in the lower right corner to make it take effect. The "start" button in the gray state can be used, click it to start the Index Service. When the system is idle, the Index Service will index and maintain files on the computer. After the Index Service is started, the System creates a file named System Volume Information \ catalog. wci in the hard disk System partition to store the index file. The Index Service can run continuously without maintenance. After the Index Service is installed, all operations will be completed automatically, including index creation, Index Update, and fault recovery when the power is down. 2. After the Index Service is called during the search process to start the Index Service, the search speed and efficiency should be improved. However, you must first make the search call the Index Service. In the search window, select "Change Preferences", 3, select "Yes, enable Indexing Service", and then click "OK" to use the Indexing Service in the search. The total size of the indexed documents and the file system type in use will affect the disk space required to store the Index Service data, the space required for the FAT file system Classification plus temporary workspace is about 30% of the index file problems, while the NTFS file system requires about 15% of the index file problems. 3. the Index Service stores all its index information in the catalog. The catalog contains the index information and the storage attributes of specific groups in the file system directory, after the Index Service is installed in Windows, it is automatically constructed into a system catalog, which lists all the contents of the disk drive that are permanently connected, except for specific files and temporary files, the system catalog contains the indexes of all documents. If Internet Information Service is detected, Index Service creates a catalog named Web at the same time. (1) document content. The index contains the content of each document. In addition to the words in the exception list (such as the Crown, prefix, and pronoun), the document content includes the text in the HTML document, the body of a news group article or email, the body of a word processing program document or other documents. The index occupies most of the space of the catalog, which is about 15 to the total size of the indexed documents ~ 30%. (2) document attributes. Document attributes represent the characteristics of a document, such as the creation date, author name, and document size. attribute values are specific information of a specific file. Some attribute values are automatically set by the program that creates the document, some attribute values are input by the user. All attributes and attribute values are indexed together with the document content and must be searched. Most attributes can also be displayed in the list of search results, however, when a document is indexed, it must be stored in the attribute cache. Otherwise, the index service cannot be found and cannot be displayed in the search results. (3) create a catalog. In fact, in most cases, we only need to index some specific folders, so that the System default System catalog will not meet our needs. At this point, you can add the corresponding Catalog according to the actual situation, open the "Control Panel> Management Tools> Computer Management" window, and expand "Computer Management (local)" in sequence) → service and application → Indexing Service ", select" New → catalog "from the Operation menu, enter the catalog name, and select the storage location of the index data, note: After adding a catalog, you must stop and restart the Index Service for indexing. (4) Add a directory. Next, you need to add a directory for the newly created catalog, select "New> directory" in the blank area on the right, and click "Browse" in the displayed dialog box to set the corresponding path, note that we should include the following "in the index?" Set to "yes". If "no" is selected, this folder can be excluded from the index. After adding the folder, the system will automatically complete the scan of the directory. Of course, you can also right-click the folder in the directory list and select "all tasks → re-scan (incremental)". In this way, the system will only index the modified parts. 4. enable the Indexing Service to support more files under the default settings. The Indexing Service only supports document types with corresponding filters, and whether it can support more files, for example, what about popular XML documents? Open the "Control Panel> Administrative Tools> Computer Management" window, and expand "Computer Management (local)> services and applications> Indexing Services ", right-click to add a catalog that supports the document type, open the Properties window, and switch to the "generate" tab, as shown in 4. First, remove the "inherit from service settings above" check box, select the "index files with unknown extensions" check box in the "inherited settings" section. 5. to adjust the index service performance, we can adjust the Index Service Performance Based on the service method, mainly to change the number of computer resources used for indexing and query processing, right-click the Index Service, select "stop" from the "operation" menu, and then select "all tasks> Performance adjustment" from the "operation" menu again ", in the "Index Service Usage" dialog box, select the option that best suits the "Index Service" usage on the computer, here we provide four index service usage methods: frequently used, occasionally used, never used, and customized. If you select "Custom", you can get more adjustment permissions. As shown in figure 5, you can move the "Index" slider to the "slow" or "immediate" position, the former can delay indexing and use less system resources. The latter will immediately index new and changed documents, but will use as many system resources as possible. If not many queries are processed at a time, move the "query" slider to "Low Load". If a large number of queries are processed at a time, move to "high load, of course, the latter will use more resources. After the "Index" and "query" are adjusted, the index service must be restarted to take effect. 6. using system monitor to monitor the index service, we can use the Windows built-in performance monitoring function to monitor the Index Service. Double-click the "performance" icon on the Control Panel to open the window 6 shown in, add the corresponding counter from the right-click menu, binding time (average time bound to the filter file), indexing speed (document indexing speed, but not the generated summary) and the total index speed (including the generated summary). The three counters will be displayed under the "Index Service filter" object, the number of queries being processed in the running state (number of queries being processed) the total number of queries (the total number of queries processed in this index session) are displayed under the index service object. 7. reducing the resource usage of the index service because the Index Service will consume a large amount of memory and system resources, if the memory is insufficient, it will seriously affect the performance. Therefore, we recommend that you configure a higher memory capacity, configuring a fast processor can also improve the indexing performance and query processing speed. For example, when selecting a large AVI video file, the system usually stops responding because the system first scans the file, execute a loop to check all the parts of the file for indexing. If the file exceeds MB and no index information is available, the system will take a long time to query the index, and the CPU usage will be high. If the NTFS partition is used, right-click the folder where the video file is located, open the "General> advanced" dialog box in the Properties window, and deselect the "for quick search, enable the Indexing Service to compile the index of this folder check box, select apply to all files, and click OK. It should be noted that, when running the backup program or scanning the virus, the indexing service will stop updating content because these programs will lock some files, in this way, the indexing service will time out when attempting to index these files. The correct method is to temporarily stop the Indexing Service.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.