Add a search platform to a Web site using the "Search engine factory"

Source: Internet
Author: User
Tags access database mysql database
Search engine

Using FrontPage to make a site search engine is very simple, but not all Web servers support FrontPage Expansion Server module, which gives its application limitations, but it does not matter, if the use of such as "search engine factory" such as search engine aids, Can also create a professional level of the site search engine to. ( Professional Edition download address )

  The first step is to specify the search site

Open the software, first on the "File" tab to specify the need to add a search engine site (such as figure), you can click the "website" button to specify the site has been uploaded to the server or use the "folder" point to the local directory, in order to facilitate debugging and speed up the search response speed You typically use the local site directory and select Use relative path on the path. For owners with multiple sites, if you need multiple sites to use a site search engine together, you can choose to "index multiple sites or folders to a search engine", and then click the "Add" button to add a website or a local site folder directory.


(larger picture, please pull the scroll bar to watch)

Tip: After you specify the search site, click the "Index" button on the toolbar to display all the indexed page files in the Site directory in the page box on the right side of the software interface.

  Step two, select the search script

"Search engine Factory" Professional Edition supported Web search script types have JavaScript, ASP and PHP, if it is a pure static site to choose JavaScript Script, if ASP or PHP dynamic site to choose the appropriate script. For Web sites that use ASP and PHP scripts, if you have more than 2000 pages to work with, you typically choose to use the Access or MySQL database to speed up your search processing.

  Step three, set the index file type

Switch to the Index tab, here we want to set up for the search engine site can be indexed to search for the Web page files, text files and multimedia files, etc. (such as the picture), if the site has not want to allow visitors to search the file or page, you can click the "Add" button to set up.


(larger picture, please pull the scroll bar to watch)

 Step fourth, customize the template and output style

On the Templates tab, the system provides three forms of search templates, and after selecting a template, you can also edit the relevant pages of the search such as search.asp, result.htm, etc. to conform to the overall layout and tonal settings of the site. Once you have set the search policy for the Search tab to search for the matching policy for the keyword group and search for the page, switch to the Output tab to set the search output style such as the font and color of the search results display page and result items.

  Step fifth, create a search engine

Completion of the above settings, you can build the site search engine, click on the toolbar "create" button can be generated for the site search files, generated files will be based on your chosen script and different, such as the choice of ASP script and Access database generated Indexdata.mdb, Search.asp and searchfunc.asp three files, the generated files are copied to the site directory, running Search.asp can be implemented in-site search.

  hint: in order to make the website more perfect, we can copy the search form code in the following search.asp to the page that needs to set up the search engine in the station.

<form name= "Formsear" action= "search.asp" method= "get" ><input name= "Searwords" > <input name= "Send" Type= "Submit" value= "Search" ></FORM>



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.