/    Sign up×
Community /Pin to ProfileBookmark

Internal search engine: server or client-side??

Hi there,

I’ve been reading previous threads about how to set up a search engine which searches for pages within a web site.

Most people have indicated that server-side languages such as Perl and PHP are the way to go, as opposed to Javascript.

I am experienced with Javascript and was hoping to persue that option, but was wanting to know why most people prefer server-side scripts to do this. Is it because of the different ways that browsers interpret JavaScript?

Also, since I’m not familiar with server-side scripting, can anyone tell me where I can download scripts for this purpose.

Thanks,
Matt

to post a comment
Full-stack Developer

3 Comments(s)

Copy linkTweet thisAlerts:
@luc83Jul 02.2003 — hi MattOz

I cant think of a way you could use javascript to search through a site..

server side scripting is defenitily the way to go. There's lot of good site where you can find ressource for ASP and PHP.

If you want to learn server side scripting, you should not start by trying to code a search engine.
Copy linkTweet thisAlerts:
@PeOfEoJul 02.2003 — I personally reccommend asp.net, If you have experience in vb its extremly easy to pick up.
Copy linkTweet thisAlerts:
@ray12Aug 18.2003 — Searching a site with JavaScript is possible, but it requires having to download the entire index data (keywords, and all that information) for the script to 'search through' on the client-side. This isn't really an option for any sites with more than 10 pages - unless the website is for a local intranet or something.

Otherwise - as echoed by the other posts - server-side searching is the go.
×

Success!

Help @MattOz spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...