Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching Internal Website

Status
Not open for further replies.

MrPantsTm

Programmer
Jan 22, 2004
71
US
the company I work for wants to add a search engine to the page(s) I've created for them. I was hoping to just use Google but since it is an internal site with no dns I can't redirect Google to just search the site (which would be nice but I have a feeling my employer would not find safe).

The majority of the pages are written in PHP with a MySQL database. It's running on a RedHat Linux box. Any suggestions would be appreciated besides using grep :)
 
Check out i'm sure they'll have something. They did in asp anyway.

thereptilian120x120.gif
 
MrPantsTm,

I run a very similar setup here (but using Apache/Tomcat instead of PHP). The key is that you are running mySQL. You can search mySQL tables (of course) - I recently created a search solution using the following URLs for backup:



The following gave a good crash course on using weighed queries as well:


Hope this is enough to get you going. Remember that you can alter existing tables to add in the MyISAM table definition using the following:

> ALTER TABLE table_name TYPE=mySAM;
> REPAIR TABLE table_name QUICK;

It certainly did the trick for me (but please back up just in case -- I'd hate to break your intranet... I have enough worry with my won *grin*)!

All the best,
Jeff
 
Thank you bombboy and BabyJeffy.

BabyJeffy - I'm thought of using the mysql database to do searchs since it has inherent search queries. My problem, is that a lot of documents are going to uploaded to the a document repository of sorts. The way I have it set up, the database only takes the filename and location (and some other trivial bits of info such as size, file ext etc) and puts that in the database. The actual text of the document is left alone. It would be nice to be able to search those files (docs, xls, txt et al). I don't believe loading the files into the database would be wise or practical although correct me if I'm wrong.

Again thanks for the links, that'll definitly get me started.


 
Agreed that putting the docs into mySQL is probably not the solution... I wasn't aware you wanted to ofer searching across documents as well *grin*

We're probably going to have to do something ourselves on this front... and I think that means getting a commercial solution in -- no point re-engineering a tried solution of that size.

Would be keen to see how you get on.

Jeff
 
You might want to take a look at phpdig. It's actually designed as a search engine and spider so can do full text indexing of documents.

it's free so may be worth a try.




Chris.

Indifference will be the downfall of mankind, but who cares?
 
>I can't redirect Google to just search the site
You can Google a specific site as follows:

[search strings][space]site:[the site name]

This restricts the search to the specified site only.
 
You can Google a specific site as follows:
[search strings][space]site:[the site name]
This restricts the search to the specified site only.


[lol] You took a tiny part of the comment without reading it. The full comment was:

but since it is an internal site with no dns I can't redirect Google to just search the site (which would be nice but I have a feeling my employer would not find safe).

Hope this helps


Wullie


The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top