From perlfect-search@perlfect.com Wed Oct 1 00:18:16 2003 From: perlfect-search@perlfect.com (orestes) Date: Tue, 30 Sep 2003 20:18:16 -0400 Subject: [Perlfect-search] Something stranger Message-ID: <000c01c387b1$cac86e00$909e37c8@orestes> This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C3878F.FBCA0620 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Something stranger is passing with my Perlfect Search 3.30. I installed = it in my website, that I published recently with a new format designed = with DreamWeaver tools (the previous version had been made with Front = Page), and this wonderful searcher worked almost perfect. The only = problem was that so much in the resulting list of each search, like in = the texts of the own articles, the accented characters (my site is in = Spanish) were substituted by scrabbles, as these: =20 A lo largo de 91 minutos afloran los m=C3=A1s diversos matices del = crecimiento de un car=C3=A1cter. En esencia, el hombre ha sido = consecuente consigo mismo, con sus lealtades y anticipaciones, con su = hidalgu=C3=ADa y su fidelidad a los principios. Al t=C3=A9rmino del = documental se tiene la viva expresi=C3=B3n de haber asistido a una = sobria, consistente y reveladora lecci=C3=B3n de humanismo. =20 What is happening? Sombebody can help me? Please... Regards Orestes ------=_NextPart_000_0009_01C3878F.FBCA0620 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Something stranger=20 is passing with my Perlfect Search 3.30. I installed it in my  website, that I published = recently with a=20 new format designed with DreamWeaver tools (the previous version had = been made=20 with Front Page), and this wonderful searcher worked almost perfect. The = only=20 problem was that so much in the resulting list of each search, like in = the texts=20 of the own articles, the accented characters (my site is in Spanish) = were=20 substituted by scrabbles, as these:

 

A lo=20 largo de 91 minutos afloran los m=C3=A1s diversos matices del = crecimiento de un=20 car=C3=A1cter. En esencia, el hombre ha sido consecuente consigo mismo, = con sus=20 lealtades y anticipaciones, con su hidalgu=C3­a y su fidelidad a los = principios. Al t=C3=A9rmino del documental se tiene la viva = expresi=C3=B3n de haber=20 asistido a una sobria, consistente y reveladora lecci=C3=B3n de=20 humanismo.

 

What is = happening?=20 Sombebody can help me? Please...

 

Regards

 

Orestes

------=_NextPart_000_0009_01C3878F.FBCA0620-- From perlfect-search@perlfect.com Wed Oct 1 13:18:03 2003 From: perlfect-search@perlfect.com (Krishnakishore R Challa) Date: Wed, 1 Oct 2003 08:18:03 -0500 Subject: [Perlfect-search] Indexing password protected files... Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --------------InterScan_NT_MIME_Boundary Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3881E.26C5DB60" ------_=_NextPart_001_01C3881E.26C5DB60 Content-Type: text/plain; charset="iso-8859-1" I have pages that accessed through userid and password. These are cgi programs and have to be indexed only through HTTP. Can someone tell me if I can do that using perlfect...? If so, how. Thanks! ------_=_NextPart_001_01C3881E.26C5DB60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Indexing password protected files...

I have pages that accessed through = userid and password. These are cgi programs and have to be indexed only = through HTTP.

Can someone tell me if I can do that = using perlfect...? If so, how.

Thanks!

------_=_NextPart_001_01C3881E.26C5DB60-- --------------InterScan_NT_MIME_Boundary-- From perlfect-search@perlfect.com Wed Oct 1 19:11:52 2003 From: perlfect-search@perlfect.com (Daniel Naber) Date: Wed, 1 Oct 2003 21:11:52 +0200 Subject: [Perlfect-search] Something stranger In-Reply-To: <000c01c387b1$cac86e00$909e37c8@orestes> References: <000c01c387b1$cac86e00$909e37c8@orestes> Message-ID: <200310012111.52330@danielnaber.de> On Wednesday 01 October 2003 02:18, orestes wrote: > The only problem was that so much in the resulting list of each search, > like in the texts of the own articles, the accented characters (my site > is in Spanish) were substituted by scrabbles, as these: Do the template files (templates/search.html, no_match.html) have the right meta tag for the charset, i.e. the same as all your other pages? Regards Daniel -- http://www.danielnaber.de From perlfect-search@perlfect.com Wed Oct 8 01:35:49 2003 From: perlfect-search@perlfect.com (perlfect-search@perlfect.com) Date: Wed, 08 Oct 2003 01:35:49 +0000 Subject: [Perlfect-search] Passing a hidden variable to Perlfect and adding to a link Message-ID: Hello, I am passing a variable to Perlfect (search.pl) and I am having problem attaching the string to the url (i.e. the link that one get back). I am not sure what the error is b/c the generated pages do not display. Is it possible to do this? Also, I want to add "target=_top" for example "". However, I tried and the best I get is "". I appreciate any help in advance. Luis From perlfect-search@perlfect.com Wed Oct 8 02:33:36 2003 From: perlfect-search@perlfect.com (perlfect-search@perlfect.com) Date: Wed, 08 Oct 2003 02:33:36 +0000 Subject: [Perlfect-search] Passing a hidden variable Message-ID: Hi, I was able to find out that the variable is defined on the first page, but becomes undefined when one proceeds to the second page. This explains why the second page doesn't show up. Luis From perlfect-search@perlfect.com Wed Oct 8 19:12:26 2003 From: perlfect-search@perlfect.com (Daniel Naber) Date: Wed, 8 Oct 2003 21:12:26 +0200 Subject: [Perlfect-search] Passing a hidden variable to Perlfect and adding to a link In-Reply-To: References: Message-ID: <200310082112.26994@danielnaber.de> On Wednesday 08 October 2003 03:35, ltellony@speakeasy.net wrote: > I am passing a variable to Perlfect (search.pl) and I am having > problem attaching the string to the url (i.e. the link that one get > back). You will need to append the new variable to $queries in search.pl's cast_template() function. > display. Is it possible to do this? Also, I want to add "target=_top" > for example "". However, I tried and the best > I get is "". If you need it for all links, you can just add it in templates/search.html. If you only need it for some links, you'll need to add a new variable like and assign to it in search.pl ($h{'target'} = ...). Regards Daniel -- http://www.danielnaber.de From perlfect-search@perlfect.com Wed Oct 8 22:42:55 2003 From: perlfect-search@perlfect.com (perlfect-search@perlfect.com) Date: Wed, 08 Oct 2003 22:42:55 +0000 Subject: [Perlfect-search] Passing a hidden variable and adding a link (update) Message-ID: Hey Daniel, Thanks for all. Things are working out perfectly. Lou From perlfect-search@perlfect.com Thu Oct 9 10:18:46 2003 From: perlfect-search@perlfect.com (Robert van Hall) Date: Thu, 09 Oct 2003 12:18:46 +0200 Subject: [Perlfect-search] Passing a hidden variable to Perlfect and adding to a link Message-ID: >>> daniel.naber@t-online.de 10/08/03 09:12pm >>> On Wednesday 08 October 2003 03:35, ltellony@speakeasy.net wrote: ........................................ Also, I want to add "target=_top" > for example "". However, I tried and the best > I get is "". If you need it for all links, you can just add it in templates/search.html. If you only need it for some links, you'll need to add a new variable like and assign to it in search.pl ($h{'target'} = ...). .......................................... Hi Daniel, This sounds very interesting. What I would like to do is opening the pdf's in the search results in a new wondow, and the html's just in the same frame. Can this be done in Pelfect Search? And if so, how can I do it? Kind regards, Robert van Hall From perlfect-search@perlfect.com Thu Oct 9 17:38:45 2003 From: perlfect-search@perlfect.com (Daniel Naber) Date: Thu, 9 Oct 2003 19:38:45 +0200 Subject: [Perlfect-search] Passing a hidden variable to Perlfect and adding to a link In-Reply-To: References: Message-ID: <200310091938.45177@danielnaber.de> On Thursday 09 October 2003 12:18, Robert van Hall wrote: > What I would like to do is opening the pdf's in the search results in a > new wondow, and the html's just in the same frame. > Can this be done in Pelfect Search? And if so, how can I do it? For me PDF files open in an external viewer, so an extra window is quite annoying... but anyway: you can add to the template and add another line to the cast_loop() call in search.pl. The value assigned to the variable needs to depend on the url (does it end with .pdf or not?). (My hint about $h{'target'} = ... was actually incorrect). Regards Daniel -- http://www.danielnaber.de From perlfect-search@perlfect.com Fri Oct 10 07:44:46 2003 From: perlfect-search@perlfect.com (Robert van Hall) Date: Fri, 10 Oct 2003 09:44:46 +0200 Subject: [Perlfect-search] Passing a hidden variable to Perlfect and adding to a link Message-ID: Hi Daniel, In my search.pl I have found my $template->cast_loop: ...................................................... $template->cast_loop ("results", [{rank => $first+(++$rank), url => $url, highlight_link => $highlight_link, visibleurl => $visible_url, title => $title, date => $date, score => $score, description => $desc, size => sprintf("%.0f", $sizes_db{$_}/1000) || 1, }]); ......................................................... How can I add the line or lines calling the pdf seperately? The I have to add to my search.html, I presume? Kind regards, and have a nice weekend, Robert van Hall >>> daniel.naber@t-online.de 10/09/03 07:38pm >>> On Thursday 09 October 2003 12:18, Robert van Hall wrote: > What I would like to do is opening the pdf's in the search results in a > new wondow, and the html's just in the same frame. > Can this be done in Pelfect Search? And if so, how can I do it? For me PDF files open in an external viewer, so an extra window is quite annoying... but anyway: you can add to the template and add another line to the cast_loop() call in search.pl. The value assigned to the variable needs to depend on the url (does it end with .pdf or not?). (My hint about $h{'target'} = ... was actually incorrect). Regards Daniel -- http://www.danielnaber.de _______________________________________________ perlfect-search mailing list perlfect-search@perlfect.com To unsubscribe, set other personal options or view the list archives please visit: http://perlfect.com/mailman/listinfo/perlfect-search From perlfect-search@perlfect.com Fri Oct 10 17:23:50 2003 From: perlfect-search@perlfect.com (Daniel Naber) Date: Fri, 10 Oct 2003 19:23:50 +0200 Subject: [Perlfect-search] Passing a hidden variable to Perlfect and adding to a link In-Reply-To: References: Message-ID: <200310101923.50965@danielnaber.de> On Friday 10 October 2003 09:44, Robert van Hall wrote: > date => $date, Just add "target => $target," and define $target based on the filename (if it ends with pdf, make it target="_top", else make it an empty string). Regards Daniel -- http://www.danielnaber.de From perlfect-search@perlfect.com Sat Oct 11 18:59:01 2003 From: perlfect-search@perlfect.com (Martin Bonner) Date: Sat, 11 Oct 2003 19:59:01 +0100 Subject: [Perlfect-search] perlfect search + template::toolkit Message-ID: <003a01c39029$bb907010$3301a8c0@ISOLDE> This is a multi-part message in MIME format. ------=_NextPart_000_0037_01C39032.1D501D20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I was already making extensive use of Template::Toolkit for my site at the point of installing perlfect-search, so I've added the functionality to use Template::Toolkit for generating the output instead of Perlfect::Template On the off-chance that this functionality is of use to others, I've attached some patches (diffs are against search.pl version 1.97 but hopefully should apply okay to others) To enable this functionality, patch search.pl and add '$USE_TEMPLATE_TOOLKIT = 1;' to conf.pl. Setting this option to 0 will disable the TT functionality and revert to using Perlfect::Template. I've also written a short script for converting Perlfect::Template style templates to Template::Toolkit templates and have attached this also. Kind Regards, Martin. ------=_NextPart_000_0037_01C39032.1D501D20 Content-Type: application/octet-stream; name="perlfect2tt.pl" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="perlfect2tt.pl" #!/usr/bin/perl=0A= =0A= use strict;=0A= =0A= while (<>)=0A= {=0A= $_ =3D~ s/<\!--\s*cgi:\s*(\w*)\s*-->/\[% $1 %\]/g;=0A= $_ =3D~ s/<\!--\s*loop:\s*results\s*-->/\[% FOREACH item =3D results = %\]/g;=0A= $_ =3D~ s/<\!--\s*item:\s*(\w*)\s*-->/\[% item\.$1 %\]/g;=0A= $_ =3D~ s/<\!--\s*end:\s*results\s*-->/\[% END %\]/g;=0A= print $_;=0A= }=0A= ------=_NextPart_000_0037_01C39032.1D501D20 Content-Type: application/octet-stream; name="search.pl.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="search.pl.diff" --- ../search-3.31b/search.pl 2003-05-22 00:15:34.000000000 +0100=0A= +++ ./search.pl 2003-10-11 18:28:10.000000000 +0100=0A= @@ -30,6 +30,10 @@=0A= #use CGI::Carp qw(fatalsToBrowser);=0A= use Fcntl;=0A= use POSIX qw(strftime);=0A= +if ($USE_TEMPLATE_TOOLKIT) {=0A= +use Template;=0A= +}=0A= +=0A= =0A= # added program path to @INC because it fails to find ./conf.pl if = started from=0A= # other directory=0A= @@ -385,7 +389,18 @@=0A= } else {=0A= $file =3D $SEARCH_TEMPLATE{$lang};=0A= }=0A= - my $template =3D new Perlfect::Template($file);=0A= + my $template;=0A= + my $tt_output =3D '';=0A= + my $tt_vars;=0A= +=0A= + if ($USE_TEMPLATE_TOOLKIT) {=0A= + $template =3D Template->new({=0A= + OUTPUT =3D> \$tt_output,=0A= + ABSOLUTE =3D> 1,=0A= + });=0A= + } else {=0A= + $template =3D new Perlfect::Template($file);=0A= + }=0A= =0A= # %h carries values that will show up in the result page at :=0A= $h{'script_name'} =3D "Perlfect Search $VERSION";=0A= @@ -496,7 +511,20 @@=0A= "&showurl=3D$show_url\">$HIGHLIGHT_TERMS{$lang})";=0A= }=0A= my $title =3D get_title_highlight($titles_db{$_}, $q);=0A= - $template->cast_loop ("results", [{rank =3D> $first+(++$rank), =0A= + if ($USE_TEMPLATE_TOOLKIT) {=0A= + push @{$tt_vars->{'results'}}, {=0A= + rank =3D> $first+(++$rank),=0A= + url =3D> $url,=0A= + highlight_link =3D> $highlight_link,=0A= + visibleurl =3D> $visible_url,=0A= + title =3D> $title,=0A= + date =3D> $date,=0A= + score =3D> $score,=0A= + description =3D> $desc,=0A= + size =3D> sprintf("%.0f", $sizes_db{$_}/1000) || = 1,=0A= + };=0A= + } else {=0A= + $template->cast_loop ("results", [{rank =3D> $first+(++$rank), =0A= url =3D> $url,=0A= highlight_link =3D> $highlight_link,=0A= visibleurl =3D> $visible_url, =0A= @@ -506,9 +534,10 @@=0A= description =3D> $desc,=0A= size =3D> sprintf("%.0f", $sizes_db{$_}/1000) || = 1,=0A= }]);=0A= + }=0A= $result_count++;=0A= }=0A= - $template->finalize("results");=0A= + $template->finalize("results") unless ($USE_TEMPLATE_TOOLKIT);=0A= $h{'results_num'} =3D $real_last;=0A= =0A= my $last_page =3D ceil($real_last, $RESULTS_PER_PAGE);=0A= @@ -562,8 +591,16 @@=0A= $h{'search_time'} =3D sprintf(" in %.2f seconds", = Time::HiRes::tv_interval($start_time));=0A= }=0A= =0A= - $template->cast(\%h);=0A= - return $template->html;=0A= + if ($USE_TEMPLATE_TOOLKIT) {=0A= + foreach (keys %h) {=0A= + $tt_vars->{$_} =3D $h{$_};=0A= + }=0A= + $template->process($file,$tt_vars) || die "Template process failed: = ", $template->error(), "\n";=0A= + return $tt_output;=0A= + }=0A= + else {=0A= + return $template->cast(\%h);=0A= + }=0A= }=0A= =0A= sub get_title_highlight {=0A= ------=_NextPart_000_0037_01C39032.1D501D20-- From perlfect-search@perlfect.com Mon Oct 13 11:19:08 2003 From: perlfect-search@perlfect.com (Robert van Hall) Date: Mon, 13 Oct 2003 13:19:08 +0200 Subject: [Perlfect-search] Passing a hidden variable to Perlfect and adding to a link Message-ID: Hi Daniel, My search.pl has no cast_loop function in it. Where and how could I add that? Regards, Robert >>> daniel.naber@t-online.de 10/10/03 07:23pm >>> On Friday 10 October 2003 09:44, Robert van Hall wrote: > date => $date, Just add "target => $target," and define $target based on the filename (if it ends with pdf, make it target="_top", else make it an empty string). Regards Daniel -- http://www.danielnaber.de _______________________________________________ perlfect-search mailing list perlfect-search@perlfect.com To unsubscribe, set other personal options or view the list archives please visit: http://perlfect.com/mailman/listinfo/perlfect-search From perlfect-search@perlfect.com Mon Oct 13 17:52:42 2003 From: perlfect-search@perlfect.com (Daniel Naber) Date: Mon, 13 Oct 2003 19:52:42 +0200 Subject: [Perlfect-search] Passing a hidden variable to Perlfect and adding to a link In-Reply-To: References: Message-ID: <200310131952.43038@danielnaber.de> On Monday 13 October 2003 13:19, Robert van Hall wrote: > My search.pl has no cast_loop function in it. The cast_loop call is around line 496. Regards Daniel -- http://www.danielnaber.de From perlfect-search@perlfect.com Wed Oct 15 12:13:16 2003 From: perlfect-search@perlfect.com (Brenden Dawson) Date: 15 Oct 2003 07:13:16 -0500 Subject: [Perlfect-search] Adding feature FOO - WordPerfect Document indexing Message-ID: <1066219996.14334.155.camel@tremor.local> I'd like to thank the Perlfect folks for such a great search mechanism. I worked out a FOO feature, and thought I'd pass it on to some of those who may need it (using RedHat 7.3 and Apache 1.3.22). I've added the ability to search WordPerfect documents... a feature which was sorely needed by a client of mine due to prevailence of WordPerfect in their industry. Setup is similar to PDFs and DOCs: It requires libwpd - tarballs, rpms and dependencies available from http://libwpd.sourceforge.net. conf.pl needs to be modified: @EXT requires the addition of "wpd" and/or "WPD" (depending on the case of the document extensions). %EXT_FILTER also needs the following: "wpd" => "/usr/bin/wpd2text FILENAME" An additional line should be added due to case sensitivity as with @EXT above. Be sure to retain the comma deliminated nature of the %EXT_FILTER container as needed. The web server also needs modified to handle WordPerfect documents. Otherwise it will attempt to open .wpd's in the browser window in lieu of saving the file or opening it with it's default application (WordPerfect, etc). The following worked for me (Apache 1.3.22): AddType application/x-wpd .wpd The web server will need restarted, and the indexer.pl script will need to be run again. I don't claim to be an expert at this, so this mini-howto may contain some unnecessary steps. I'm only relating what worked for me. YMMV. If the FCC and Harvard have this capability, why not us, too? Just my .02 -- Brenden Dawson Twister Alley Microsystems http://twister-alley.com From perlfect-search@perlfect.com Wed Oct 15 13:25:19 2003 From: perlfect-search@perlfect.com (Larry Whittington, Jr.) Date: Wed, 15 Oct 2003 06:25:19 -0700 (PDT) Subject: [Perlfect-search] Cannot open inv_index_tmp Message-ID: <20031015132519.82054.qmail@web13605.mail.yahoo.com> When I run indexer.pl, the script is stopping at the first die statement "Cannot open /webdocs/cgi/perlfect/search/data/inv_index_tmp packages = DB_File" I don't have SSH/Telnet access, so I'm executing this via index_form. The data and temp directories all exist with permissions set at 755. For reference, INSTALL DIR is set as: $INSTALL_DIR = '/webdocs/cgi/perlfect/search/'; Any ideas?? Regards, Larry __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com From perlfect-search@perlfect.com Wed Oct 15 18:36:05 2003 From: perlfect-search@perlfect.com (Daniel Naber) Date: Wed, 15 Oct 2003 20:36:05 +0200 Subject: [Perlfect-search] Cannot open inv_index_tmp In-Reply-To: <20031015132519.82054.qmail@web13605.mail.yahoo.com> References: <20031015132519.82054.qmail@web13605.mail.yahoo.com> Message-ID: <200310152036.05487@danielnaber.de> On Wednesday 15 October 2003 15:25, Larry Whittington, Jr. wrote: > The data and temp directories all exist with > permissions set at 755. You maybe need to set the data and temp directory to 777. Regards Daniel -- http://www.danielnaber.de From perlfect-search@perlfect.com Thu Oct 23 09:03:29 2003 From: perlfect-search@perlfect.com (Mike Schwarz) Date: Thu, 23 Oct 2003 11:03:29 +0200 Subject: [Perlfect-search] score not shown Message-ID: <003101c39944$86fe8980$0200005a@MIKESCHWARZ> hi i have a problem with score its shown with 0 % for each result, if there are more then 2 results if its just 1 result, it shows 100% option for scoring is enabled in config.pl any idea, what the problem could be? you can see it on http://specogna.tekhosting.ch/internet/ top left, enter for example "mieter" for several results or enter "kundschaft" for 1 result indexing shows no error at all indexed sites are 52 i appreciate any help on this thankx mike From perlfect-search@perlfect.com Tue Oct 28 14:34:40 2003 From: perlfect-search@perlfect.com (=?iso-8859-1?q?Ben=20Cuthbert?=) Date: Tue, 28 Oct 2003 14:34:40 +0000 (GMT) Subject: [Perlfect-search] Perlfect search not drilling down into directories Message-ID: <20031028143440.32163.qmail@web25006.mail.ukl.yahoo.com> All I have install the perlfect search db, and got it all working i run my index through a cron job every night. I have an Samba mounted FS under my apache docs, that goes to a windows share which has all the documentation in folders, and those folders have sub folders. Looks like some of the documents are getting indexed, but others are not. And it seems that the ones that are in sub directories do not get indexed. Here is a log from my indexer 382: /opt/apache/htdocs/iig/docs/Projects-IIG/VPN-cfg-AT/vpn version 5.2.doc (4311.50 KB) Use of uninitialized value in substitution (s///) at indexer.pl line 275. Use of uninitialized value in substitution (s///) at indexer.pl line 276. Use of uninitialized value in pattern match (m//) at indexer.pl line 464. Use of uninitialized value in substitution (s///) at indexer.pl line 390. Use of uninitialized value in substitution (s///) at indexer.pl line 391. Use of uninitialized value in substitution (s///) at indexer.pl line 392. Use of uninitialized value in substitution (s///) at indexer.pl line 393. Use of uninitialized value in transliteration (tr///) at indexer.pl line 394. Use of uninitialized value in substitution (s///) at tools.pl line 245. Use of uninitialized value in substitution (s///) at tools.pl line 247. Use of uninitialized value in substitution (s///) at tools.pl line 249. Use of uninitialized value in split at indexer.pl line 431. Use of uninitialized value in pattern match (m//) at indexer.pl line 440. Use of uninitialized value in pattern match (m//) at indexer.pl line 487. So if i do a search for Any word on "vpn version 5.2" i does not bring back my documents, is there a way to change the way it searches to include the document name in the search field ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk