PDA

View Full Version : Search Engine?


nhagan
01-29-2008, 07:56 PM
Hello, i am not sure it goes under this section in the forum, but i was wondering if anyone could explain or help me create a simple search engine.

Thanks Nat.

rangana
01-29-2008, 08:02 PM
Hi there nhagan,
What do you mean??..Do you want an input field and then search through net??If so, this link would help: JavaScript Kit (http://www.javascriptkit.com/script/cut130.shtml) or other??..

nhagan
01-29-2008, 08:05 PM
Well any search engine will do, i know some sites have search engines which search on google from your website.

And the ones where it searches your website, but a database is needed for that i think.. im not sure how to create this one.

ktorrepalma
01-29-2008, 08:51 PM
Hello I'm new but I will try to help.
What do you want software search engine maker?If so then try this http://www.searchmakerpro.com/
But if you to create your own from scracth then you can create it using input fields , some redirection codes and php codes. Then you can try this link http://www.google.com.ph/search?hl=tl&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=making+a+search+engine&spell=1 it states a great tutorial for that.

rangana
01-29-2008, 09:08 PM
@nhagan, Hi there, if you want to create a webpage, have an input field, then put this codes inside the <body> tag.
<script language="JavaScript">
<!--

//
// Script by Jari Aarniala [www.mbnet.fi/~foo -- foo@mbnet.fi]
//
// This script makes it easy to choose with which search engine
// you`d like to search the net. You may use this if you keep this
// text here...
//

function startSearch(){
searchString = document.searchForm.searchText.value;
if(searchString != ""){
searchEngine = document.searchForm.whichEngine.selectedIndex + 1;
finalSearchString = "";

if(searchEngine == 1){
finalSearchString = "http://www.altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=.&q=" + searchString;
}
if(searchEngine == 2){
finalSearchString = "http://av.yahoo.com/bin/query?p=" + searchString + "&hc=0&hs=0";
}
if(searchEngine == 3){
finalSearchString = "http://www.excite.com/search.gw?trace=a&search=" + searchString;
}
if(searchEngine == 4){
finalSearchString = "http://www.hotbot.com/?SW=web&SM=MC&MT=" + searchString + "&DC=10&DE=2&RG=NA&_v=2&act.search.x=89&act.search.y=7";
}
if(searchEngine == 5){
finalSearchString = "http://www.infoseek.com/Titles?qt=" + searchString + "&col=WW&sv=IS&lk=noframes&nh=10";
}
if(searchEngine == 6){
finalSearchString = "http://www.lycos.com/cgi-bin/pursuit?adv=%26adv%3B&cat=lycos&matchmode=and&query=" + searchString + "&x=45&y=11";
}
if(searchEngine == 7){
finalSearchString = "http://netfind.aol.com/search.gw?search=" + searchString + "&c=web&lk=excite_netfind_us&src=1";
}

location.href = finalSearchString;
}
}


// -->
</script>

<basefont face="Verdana, Arial, sans-serif">

<form name="searchForm">

<table width=320 border cellpadding=3 cellspacing=2 bgcolor=444444>

<tr>
<td bgcolor=lightblue><font size=1 face="Verdana, Arial, sans-serif">Search for:<br>
<td bgcolor=lightblue><font size=1 face="Verdana, Arial, sans-serif">Search from:
<td bgcolor=lightblue>&nbsp;

<tr>
<td bgcolor=navajowhite><input style="background: dddddd" name="searchText" type="text">
<td bgcolor=navajowhite>
<select style="background: dddddd" name="whichEngine">
<option selected>Altavista
<option>Yahoo!
<option>Excite
<option>Hotbot
<option>Infoseek
<option>Lycos
<option>AOL Netfind
</select>
<td bgcolor=navajowhite><input type="button" value="Search" onClick="startSearch()">

</select>
</table>
</form>

Now if you want to do search within your webpage, without using the power of other browsers, some programming language would aid it, and database too, if you need the data be stored.

@ktorrepalma,
Welcome Dude!...enjoy!.