Create an enterprise Web site full-Text Search

Source: Internet
Author: User
Tags iis query
Create | full-Text Search
Create an enterprise Web site full-Text Search

Teammate

---- In the Enterprise's Internet application, how to find the needed information quickly in the data of thousands of Web pages becomes very important problem. Although good browsing planning can provide a certain amount of help to the Internet users, but in order to meet the different users of the Internet information (especially Chinese information) query needs, Full-text Search is one of the most useful web site functions.

---- The Index Server is the search engine that Microsoft provides in Internet Information Server (IIS). The index server is a fully automated and fully integrated Full-text search tool in IIS, a 0-maintained environment with automatic Updates, indexing, optimization, and error-recovery capabilities.

I. Installation and setup

---- 1. Install Indexing Service
---- Install Indexing Service in the Windows Setup component and click Next, you can follow the wizard step-by-step.

---- 2. Start Indexing Service
---- By default, the index service is automatically entered into indexing services after the computer starts. If you have not already entered, select Start * program "* Administrative Tools * Computer Management, and the Computer Management form appears. On the Indexing Service project under the tree directory services and applications, perform the Start command on the right-click shortcut menu to start Indexing Service, and you can see a warning message window: "Do you want to start Indexing Service automatically every time the computer starts?" , click the Yes button to automatically enter the Indexing Service each time the computer starts.

---- 3. Building Catalogs
---- Index Server retrieves the units of the search as a catalog, and each catalog is the index database of a Web site file, which can contain files under several folders, and the file types that support indexing are HTML, text files, Word files, Excel spreadsheets, PowerPoint presentations, news articles, and more. The Indexing Service automatically compiles the catalog once the file data for the catalog has changed.

When the Indexing Service is installed ---- , Index Server automatically constructs the system catalog. If IIS is installed, Indexing Service will also create a Web catalog that contains IIS indexes, or you can create a separate catalog of content file data for your Web site. The steps to create the catalog are as follows.

---- (1) On the Indexing Service project, perform the new * Catalog for the right-click shortcut menu, and type the catalog name. Click Browse, select the folder where you want to place the new category, and click OK.

---- (2) on the newly created catalog, execute the Properties directive for the right-click shortcut menu, on the Tracking tab, in the WWW server list, click the Web server that you want to index, and then click OK to complete the site category directory. It is important to note that the Indexing Service must be restarted each time a new directory is established.

---- 4. Set whether the Site directory is indexed
---- Start MMC, you can add the site home directory to the Indexing Service by automatically indexing the index service by performing the properties directive for the right-click shortcut menu on the Web site and selecting index this resource on the Home Directory tab. If the index is set in the home directory, all virtual directories for this site are automatically added to the Indexing Service indexing data.

---- for a Web site's virtual directory, you can also set whether to join Indexing Service indexing. The method is similar to the above.

Second, create a search script

---- The ASP program that writes Full-text search can follow the following steps.

---- 1. Use the Index server's query function to get the results of the Index Server query. To do this, you first set up the query and utility objects and set up queries string, then set the query object's related properties, and then set the search scope for Full-text search.

---- 2. Converts the actual path into a network virtual path.

---- 3. Special display of the characters that contain the keywords in the file name or file header.

---- The following is a practical example of the Full-text search we developed, and we can see the effect of using the index server, as shown in the attached picture.



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.