r457 - scripts/trunk

lizardo at linuxfromscratch.org lizardo at linuxfromscratch.org
Wed Jul 13 16:15:47 PDT 2005


Author: lizardo
Date: 2005-07-13 17:15:46 -0600 (Wed, 13 Jul 2005)
New Revision: 457

Added:
   scripts/trunk/mailinglists
   scripts/trunk/swishcgi.conf
Log:
Commited search engine configuration files.


Added: scripts/trunk/mailinglists
===================================================================
--- scripts/trunk/mailinglists	2005-07-13 21:16:02 UTC (rev 456)
+++ scripts/trunk/mailinglists	2005-07-13 23:15:46 UTC (rev 457)
@@ -0,0 +1,22 @@
+# This file contains the list of available mailing lists, one per line. It is
+# used e.g. to select which mailing lists are shown on the search engine page.
+
+alfs-discuss
+alfs-log
+blfs-book
+blfs-dev
+blfs-support
+faq
+hints
+hlfs-book
+hlfs-dev
+lfs-book
+lfs-chat
+lfs-dev
+lfs-hackers
+lfs-security
+lfs-support
+lfs-traducfr
+livecd
+patches
+website

Added: scripts/trunk/swishcgi.conf
===================================================================
--- scripts/trunk/swishcgi.conf	2005-07-13 21:16:02 UTC (rev 456)
+++ scripts/trunk/swishcgi.conf	2005-07-13 23:15:46 UTC (rev 457)
@@ -0,0 +1,31 @@
+# Configurarion file for http://search.linuxfromscratch.org/index.cgi
+
+$mailing_lists = ##mlists##; # This tag is replaced by the mailing lists' names
+			     # from the mailinglists file upon commit
+
+ at indexes = map("$_.swish", @$mailing_lists);
+return {
+    max_query_length => 512,
+    highlight => {
+        package       => 'SWISH::PhraseHighlight',
+        highlight_on  => '<em class="highlight">',
+        highlight_off => '</em>',
+        meta_to_prop_map => {
+            swishdefault => [ qw/swishtitle swishdescription/ ],
+            swishtitle   => [ qw/swishtitle/ ],
+            swishdocpath => [ qw/swishdocpath/ ],
+        },
+    },
+    template => {
+        package => 'SWISH::TemplateToolkit',
+        file    => 'swish.tmpl',
+    },
+    swish_index     => \@indexes,
+    select_indexes  => {
+        method  => 'checkbox_group',
+        columns => 3,
+        labels  => $mailing_lists,
+        description   => 'Search in: ',
+        default_index =>  \@indexes,
+    },
+}




More information about the website mailing list