how to make a search engine.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
claws
Forum Commoner
Posts: 73
Joined: Tue Jun 19, 2007 10:54 am

how to make a search engine.

Post by claws »

I have made a complete ajax based website.
so, there is only one page(index) that loads all the navigation pages. using ajax
so, I cant use google to implement search in my site.
I have to write my own search code which searches the database and fetches the search results.

but i have absolutely no idea how to do that.
kindly can any one give me some idea.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: how to make a search engine.

Post by superdezign »

claws wrote:I have made a complete ajax based website.
Really?
Disable JavaScript in your browser and see what happens.

Bad SEO isn't the only reason not to rely in JavaScript for everything.
User avatar
playgames
Forum Newbie
Posts: 22
Joined: Tue Sep 04, 2007 4:28 am

Post by playgames »

search engine?

you can use "file_get_contents()" to get the results from GOOGLE OR YAHOO.as the html on you site page
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

playgames wrote:search engine?

you can use "file_get_contents()" to get the results from GOOGLE OR YAHOO.as the html on you site page
I'm 100% sure both of them prohibit that.
Unless you're willing to take up a lawsuit with the biggest companies on the web...
claws
Forum Commoner
Posts: 73
Joined: Tue Jun 19, 2007 10:54 am

Post by claws »

search engine?

you can use "file_get_contents()" to get the results from GOOGLE OR YAHOO.as the html on you site page
How can search Engines like Google or Yahoo search my site??
because as viewed by them there will be only one page index.php
rest all other pages(/content) are fetched from databse using xmlHTTP functions in Javascript.

I think any search engine can understand( index) the webpages only if they are linked.

but here in this website there is no link.
Each link is a javascript function that is called and fetches required content from the database.
claws
Forum Commoner
Posts: 73
Joined: Tue Jun 19, 2007 10:54 am

Post by claws »

so, The only way that i feel left is

to write my own search code. which searches the my database. and gives the results.

Please explain in detail if i am wrong.
User avatar
xpgeek
Forum Contributor
Posts: 146
Joined: Mon May 22, 2006 1:45 am
Location: Kyiv, Ukraine
Contact:

Post by xpgeek »

You can use mnogosearch or sphinx for indexed search.
For fulltext search you can use MYSQL FULLTEXT search.
claws
Forum Commoner
Posts: 73
Joined: Tue Jun 19, 2007 10:54 am

Post by claws »

thanks a lot..

May be this will solve my problem.
mrkite
Forum Contributor
Posts: 104
Joined: Tue Sep 11, 2007 4:19 am

Post by mrkite »

I think the question is: how can people bookmark a specific page on your site?
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

Most obvious problems with AJAX are lack of back button, bookmarking for users and Search Engine Optimization (SEO) but there are other less noticable problems. Interesting link of a pdf file Harry Fuecks' talk from the PHP conference (PDF)
Post Reply