How To Make A Search Engine

Table of contents:

How To Make A Search Engine
How To Make A Search Engine

Video: How To Make A Search Engine

Video: How To Make A Search Engine
Video: Can I Make A Search Engine From Scratch? 2024, May
Anonim

There are many different options that can make life easier for your visitors on your site, in particular - the ability to search. There are several ways to create a site search function. Usually control systems are already equipped with such a function, and if you are familiar with php, then you can easily write the appropriate script. If this is not possible, then you can create a search using simple html. This will require the help of the usual search engines Yandex and Google. However, there is one caveat - this method will work on the site only if it is indexed by these systems. The results of such a search will not be displayed on your site, but on the search engine page.

How to make a search engine
How to make a search engine

Instructions

Step 1

First of all, find out the address of the search script of the search engine with which you want to organize your search.

Step 2

Our code will be four lines long. In the first line, specify the GET data transfer method and the address of the search script.

Step 3

On the second line, set the variable text, which will define the search query.

Step 4

In the third line, enter the address of the site being searched.

Step 5

The last line is the Find! Button.

In general, your code should look something like this:

A Google search works in much the same way. It is only necessary to slightly change the code of the search form. This code will look like this:

Recommended: