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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best Search Method??

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have an offline web site and it has a lot of hyperlinks on each page. Can someone advise on the best method to use for searching these links with a internal search engine.

1. Can i create a database and put them into there and then use the database to look for keywords?
2. or is it best to use a javascript search engine and add a lot of keywords to search for them.

The hyperlinks cover a lot of different areas so i need something that will work effectively.

Thanks
 
I dont want an external search engine........i need to search the offline web site for keywords for the links in the web site
 
At you can get a javascript search engine thingy. I have no idea if it works off line but you can try.

Is a normal search not working for you,
start menu->find files or folders
under advanced enter your words??




I got bloody bored at the weekend:
É,
<!--#include file=&quot;profound quotation&quot; -->
 
Hi Gary040,

If you want to and have the time for it, you could also do it on the server-side. It means that you would need:
1. A web server (Apache, IIS...);
2. A database (MySQL, PostgreSql, Access, SQLServer...);
3. A server-side programming language (PHP, ASP, JSP...);

It would require a little bit more involvement but I think that it would also be more powerfull. Say you have three tables: one for the links, one for the categories and one for the keywords. You could then easily search by keyword or browse by categories. Once you get a result you could have a box &quot;related information&quot;, which would show the other links that were indexed with the same keywords.

Server-side needs more involvement but I also see it as much more powerful.

I hope this helps.

Cheers,

Xavier
 
#!/usr/bin/perl -w
# example of searching offline
# in each in a directory in all file
# for a key value
# note: this is a perl program
use strict;
print &quot;\nEnter full path :&quot;;
my $fullpath = <stdin>;chomp $fullpath;
print &quot;Search for :&quot;;
my $mod = <stdin>; chomp $mod;
my($fich);
opendir(AR, $fullpath) || die &quot;\ndead : $!\n&quot;;
while ($fich = readdir AR) {
next if (-d &quot;$fullpath/$fich&quot;);
if (! open(F, &quot;$fullpath/$fich&quot;) ) {
warn &quot;Imposible to search in $fich : $!&quot;;
next;
}
while(<F>) {
if (/$mod/) {
print &quot;$fich : $_&quot;;
}
}
close(F);
}
closedir(AR); someone knowledge ends where
someone else knowledge starts
 
That only find words on the page (kinda like the FIND feature in Word)...I thought you wanted to search engine that can have a result outputted (kinda like searching for any links that deals with xxx, yyy, etc and having all links assocaited with that displayed)...
If you need something like that, you can use Coldfusion (we use that at my work as a seach engine), on my personal site I use a JS script as a search engine that I worte... I have not failed; I merely found 100,000 different ways of not succeding...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top