HighDots Forums  

How do I create a search on my webpage?

Website Design comp.infosystems.www.authoring.site-design


Discuss How do I create a search on my webpage? in the Website Design forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Paul Morrison
 
Posts: n/a

Default How do I create a search on my webpage? - 10-20-2005 , 01:05 PM






Hi,

I am looking to have a search option on my site, but am not sure how to go
about it. I would like to have the option of searching the site for
keywords, and also a web wide search. I have looked at the Google version of
this, but I would rather have the results opened in my site, rather than
being redirected to Google.

If anyone has any ideas as to the way I should go about this, it would be
much appreciated.

--
Paul



Reply With Quote
  #2  
Old   
Paul Morrison
 
Posts: n/a

Default Re: How do I create a search on my webpage? - 10-20-2005 , 02:59 PM






Quote:
Commercial sites (aka businesses) usually buy a search index package to
do this function. You point it to the site and it scans the pages and
produces the index. Akamai used to sell UltraSeek on Solaris. I have
no idea what's out there in the market or if you can just get a site
index perl script running that will do what you want. Can you code or
just want to run a program and "have it work"?

I can code, but would not be too confident on my ability, so would much
rather have a program that "just work".

I have had someone say to me about writing a script in PHP to fetch the
results from google page then webscrape the results and pull it into my
page.

If I get a commercial piece of software, it has to be freeware, as the site
that I am working on is a charity.

Paul




Reply With Quote
  #3  
Old   
Stan Brown
 
Posts: n/a

Default Re: How do I create a search on my webpage? - 10-20-2005 , 05:37 PM



Thu, 20 Oct 2005 18:05:39 +0100 from Paul Morrison <pm42 (AT) kent (DOT) ac.uk>:
Quote:
Hi,

I am looking to have a search option on my site, but am not sure how to go
about it. I would like to have the option of searching the site for
keywords, and also a web wide search. I have looked at the Google version of
this, but I would rather have the results opened in my site, rather than
being redirected to Google.

If anyone has any ideas as to the way I should go about this, it would be
much appreciated.
If you can tolerate ads in the search results, the free Atomz.com is
pretty easy to set up and maintain.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you


Reply With Quote
  #4  
Old   
David Dorward
 
Posts: n/a

Default Re: How do I create a search on my webpage? - 10-20-2005 , 06:39 PM



Paul Morrison wrote:

Quote:
I have had someone say to me about writing a script in PHP to fetch the
results from google page then webscrape the results and pull it into my
page.
I have a feeling that that is against Google's terms of service.

Quote:
If I get a commercial piece of software, it has to be freeware, as the
site that I am working on is a charity.
ht://dig is a rather mature, and free, piece of software for site searches.

http://www.htdig.org/

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #5  
Old   
daves@cfotogo.com
 
Posts: n/a

Default Re: How do I create a search on my webpage? - 10-21-2005 , 01:12 AM




Paul Morrison wrote:
Quote:
Commercial sites (aka businesses) usually buy a search index package to
do this function. You point it to the site and it scans the pages and
produces the index. Akamai used to sell UltraSeek on Solaris. I have
no idea what's out there in the market or if you can just get a site
index perl script running that will do what you want. Can you code or
just want to run a program and "have it work"?


I can code, but would not be too confident on my ability, so would much
rather have a program that "just work".

I have had someone say to me about writing a script in PHP to fetch the
results from google page then webscrape the results and pull it into my
page.

If I get a commercial piece of software, it has to be freeware, as the site
that I am working on is a charity.

Paul
Ultraseek is free for up to 25000 documents. Download from
http://www.ultraseek.com.



Reply With Quote
  #6  
Old   
Mark Tranchant
 
Posts: n/a

Default Re: How do I create a search on my webpage? - 10-21-2005 , 03:46 AM



Paul Morrison wrote:
Quote:
Hi,

I am looking to have a search option on my site, but am not sure how to go
about it. I would like to have the option of searching the site for
keywords, and also a web wide search. I have looked at the Google version of
this, but I would rather have the results opened in my site, rather than
being redirected to Google.

If anyone has any ideas as to the way I should go about this, it would be
much appreciated.
I presume your site is static pages? If so, you're looking at an outside
provider, or some sort of clever server-side script running grep (or
equivalent).

If your site is database-based, it's much easier. I knocked up a quick
PHP/MySQL script to run a very basic search on my site:

http://tranchant.plus.com/search

--
Mark.
http://tranchant.plus.com/


Reply With Quote
  #7  
Old   
Paul Morrison
 
Posts: n/a

Default Re: How do I create a search on my webpage? - 10-21-2005 , 04:43 AM



Quote:
I presume your site is static pages? If so, you're looking at an outside
provider, or some sort of clever server-side script running grep (or
equivalent).

If your site is database-based, it's much easier. I knocked up a quick
PHP/MySQL script to run a very basic search on my site:

Hi Mark,

The site has a main MySQL database, and idealy it is this that I will be
searching, so the second option sounds like a promising one. What kind of
thing do I need to look into in order to get this working?

Cheers

Paul




Reply With Quote
  #8  
Old   
Mark Tranchant
 
Posts: n/a

Default Re: How do I create a search on my webpage? - 10-21-2005 , 05:01 AM



Paul Morrison wrote:
Quote:
I presume your site is static pages? If so, you're looking at an outside
provider, or some sort of clever server-side script running grep (or
equivalent).

If your site is database-based, it's much easier. I knocked up a quick
PHP/MySQL script to run a very basic search on my site:

The site has a main MySQL database, and idealy it is this that I will be
searching, so the second option sounds like a promising one. What kind of
thing do I need to look into in order to get this working?
http://tranchant.plus.com/search-source

That's the PHP source. It refers to a few other files you can't get, but
they just do the formatting and the menus. I won't win any prizes for
that code, but it does the job.

The db_connect() connects to the database, keeping my user details out
of the source! The database consists of a single table with numerous
fields: the content is in the "content" field...

--
Mark.
http://tranchant.plus.com/


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.