Make,Search,Engine,PHP,and,MyS DIY Make a Search Engine in PHP and MySQL


When starting a new work at home business it is very easy to become consumed by it. We spend so much time trying to get the business up and running that we may end up becoming burned out and lose our motivation. There is so much to learn and Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable{mso-style-name:"Table Normal";mso-tstyle-rowband-size:0;mso-tstyle-colband-size:0;mso-style-noshow:yes;mso-style-parent:"";mso-padding-alt:0in


So why then make your own search engine?To make money of course!... and to become famous as the creator of the next big search engine or because as a programmer or engineer you like challenges. Making a search engine for the public Internet is tricky and if you're like me you like to solve tricky problems.The third application is a customized, high speed site search for you largethousands of pages website. An indexed search engine will be a lot faster thana full text search function and if Google's site search isn't flexible enoughfor your site you can make your own search functionality.THE BASICS OF SEARCHThe basis of any BIG search engine is a word to web page index, basically a long list of words and how well they relate to different web pages.To make a search engine you have to do four things:Decide what pages to fetch and fetch themParse out words, phrases and links from the pageGive a score to every keyword or key phrase indicating how well the phrase relates to that pages and store the scores in the search engine indexProvide a way for users to query the index and get a list of matching web pagesThis is not hard for a seasoned programmer. It can be done in a day if you know regular expressions and have some experience with HTML and databases.Now you have a working search engine, just add a lot of computers and hard drives and you'll soon index all of the Internet. If you're not prepared to go that far a one terabyte disk will hold an index of about 50 million pages.HOW TO SCORE PAGESAfter completing basic search functionality there's a lot of work before anyone will want to use your new machine.An index is not enough. What's challenging is how to score pages to give the end user the search results that's most relevant to his idea of what hi is searching for.You'll need to decide how much weight to put on keywords in the tile tag, description and main web page contents. To make good scoring you will also want to boost keywords found in the URL of the page and check the anchor text of inbound links.Keeping track of inbound links is the most useful and most challenging of the above, you'll need to keep a separate database table with info on all links between pages you index.WHAT TO INDEX AND NOT TO INDEXOther obstacles you will find when you start indexing real Internet content is the fact that there is wast amounts of useless junk floating around everywhere and eventually your index will become full of spam, affiliate pages, parked domains, work in progress homepages without content, link farms used by search engine optimizers, mirror sites using data feeds to create thousands of pages with product listings or other reproduced content etc, etc...When indexing from the Internet you will have to find ways to filter out the junk content from what people are actually reading and searching for.To start with you could limit how deep into sub directories you crawl, how many link hops from a domain index page you crawl and how many links per web page to allow.PARSING WEBSITESThere's a million ways, both right and wrong to write HTML and when you index from the Internet you will need to handle all of them.When parsing keywords from pages you not only need to handle the complete HTML standard but also all the non-standard ways that is unofficially supported by Internet browsers.To be able to read all pages you will also need to parse client side java script, handle frames, CSS and iframes.This is a large part of the work on a general search engine, to be able to read all sorts of content.WHY SO MANY URLS?Finally you'll need to deal with the fact that many websites have many URLS pointing to the same web page. Just look at this example:dmoz.orgwww.dmoz.orgdmoz.org/index.htmlwww.dmoz.org/index.htmlAll those URLs point to the same web page. If you don't make special code to handle that you'll soon have 4 results in your search engine (one for every URL) all going to the same page. Users will not like you.There is also the possibility of query strings where a session ID after the question mark in the URL will create almost infinite URLs for the same web page.google.com?SID=4434324325325google.com?SID=4387483748377google.com?SID=7654565644466To the search engine there will be a really big number of pages all containing the same content.The quick fix of course is to not index pages that include a query string. Or to strip the query string from pages. This works but will also remove a lot of legitimate content (think forums) from your index.You now have all the information you need to make a site search engine. If you're going for a general Internet search engine there's a lot more details you need to include. Like robots.txt, site maps, redirects, proxies, recognizing content types, advanced ranking algorithms as well as handling terabytes of data.I'll cover more detail in a future article. Good luck with your next search engine project. Article Tags: Search Engine, Site Search

Make,Search,Engine,PHP,and,MyS

DIY

Soil testing as important as oil changes are for engines

When you have a vehicle that you are driving a lot, you know that oil changes are something that you need to do on a regular basis to keep your vehicle in good condition. This is the same as soil testing. Soil testing ensures that your soil ...

DIY

Foam bitumen - Sustainable Eco-friendly Roads

Dont you think it will be great if we have eco-friendly roads that will be sustainable and durable as well? If there are roads that are not harming the environment anymore? This isnt just something that is for the future. There are countrie ...

DIY

Soil Testing: It’s all about that soil

Soil testing. The success of your harvest is all about the quality of the soil. And, the only way to ensure that you have the best soil, is to know what your soil needs.Many dont think that soil testing is needed. They are only adding nutrie ...

DIY

Mobile Work and Aluminum Platforms That Fit Your Needs

There are many domestic, trade and industrial applications where an extension ladder is the best and safest choice. Although many people try to make do with tall stepladders, most don't know it's hazardous to stand on the top work platform o ...

DIY

Truck Access Platforms That suitable for you

Looking to plan and specialist a few kinds of platforms that give your workers safe access to single or multiple hatches on an assortment of Tank Trucks. In the event that your administrators are as of now getting to the highest points of tr ...

DIY

How to Choose a Custom T-shirt Printing Company?

Be it a family event, a noble cause, company event, or personal interest, wearing custom t-shirts gives importance to it. The fame of personalized shirts is soaring high with this. More and more men and women are wearing custom shirts while ...

DIY

Moving Jurney By Interm Packers and Movers

They perceive the ins and outs of transferring so it's a protected option to allow them to deal with your whole belongings as a result of they'll do it proper and do it with care. When you might be in a predicament corresponding to not havin ...

DIY

Use a Vacuum Excavation for an Unearthing Project

You may very well get yourself that you have to utilise a vacuum excavation for an uncovering venture. This can be anything from disposing of a channel that is blocked or to penetrate a gap in the ground without harming the encompassing zone ...

DIY

Detailed Information about Non-Destructive Digging

At the point when you consider digging a gap in the ground, the principal thing that rings a bell is this ordinarily winds up a total wreckage around the gap.Be that as it may, there is one technique called non-destructive digging. This is t ...

DIY

A Complete Guide to buying a Vacuum Truck

Buying a vacuum truck are something that you should consider on the off chance that you are searching for another business opportunity. There are a few advantages to having this sort of business in the event that you have a completely prepar ...

DIY

Best Methods of Underground Cable Detection!

While we are continually fabricating and remolding properties, unearthing is unavoidable and can be attempted for an assortment of reason. What we are going to discover right now while playing out an exhuming, you should discover any undergr ...

DIY

Vacuum Trucks Can Deal with Exact Unearthing Needs!

Some intriguing data about vacuum trucks. That it will have the option to give in your precise excavation and drilling needs. You may imagine that those enormous trucks won't have the option to penetrate precisely, without harming anything a ...

DIY

Utility Locators - Locating Underground Cable

There are numerous reasons why it is imperative to locate underground cables. Also, if the Cables can't be found effectively, the fiasco will be immense and can be destroying.This is the reason you have to ensure that you know however much a ...

DIY

Important Information about Hydro Excavation

Hydro excavation is the way toward expelling or moving soil with pressurized water. An air movement or vacuum is then used to move the dirt or trash to a garbage tank. This takes into account a non-damaging and progressively exact approach t ...

DIY

Foam Bitumen - Lab Tests for Pavement Construction

Foam Bitumen. Something that you probably won't have found out about. All in all, for what reason would it be advisable for you to consider what the different lab tests on bitumen for asphalt development are? But on the off chance that you a ...

DIY

Soil Testing & analysing Is Worth the Effort

There's nothing of the sort as a free lunch, even in the nursery. Contingent upon your soil's local ripeness and what you develop, your plants may perform for quite a long time without requiring extra manure. Be that as it may, at some point ...

DIY

Soil Testing For Construction

Soil testing is a significant piece of building and street development. Truth be told, no development task can continue without first ensuring the soil can bolster the heap. Subsequently, the reason for soil testing for construction is to de ...

DIY

Soil Testing Services for Construction Projects

Regardless of whether you are building your fantasy home, making an expansion to your current home or building up a business property, there is one thing that is of most extreme significance, soil testing. There are various building consulta ...

DIY

Property Insurance

Property is Peoples HopeIt is not wrong to say that property is a hope and main aim of every person. People put all their efforts and then purchase some property for time ahead reliability and safety. This property is result of a long term s ...