Changes

From SME Server
Jump to navigationJump to search
805 bytes added ,  20:56, 11 May 2009
m
This is not a contrib it is a howto.
Line 7: Line 7:  
===Forum link===
 
===Forum link===
 
http://forums.contribs.org/index.php/topic,43486.0.html
 
http://forums.contribs.org/index.php/topic,43486.0.html
 +
 +
Please add comment there so I can merge it here later!
    
===Installation===
 
===Installation===
Line 68: Line 70:  
  ReplaceRules remove /home/e-smith/files/ibays
 
  ReplaceRules remove /home/e-smith/files/ibays
 
  ReplaceRules prepend //smeservername
 
  ReplaceRules prepend //smeservername
 +
# Next line will not work if you have dir's called "files"...
 
  ReplaceRules replace /files/ /
 
  ReplaceRules replace /files/ /
 +
#
    
Next: run the swish. The index file will be placed in the current dir.  
 
Next: run the swish. The index file will be placed in the current dir.  
Line 74: Line 78:  
  swish-e -c ibay.cfg -S prog -v 9
 
  swish-e -c ibay.cfg -S prog -v 9
   −
This should create both index.swish-e and index.swish-e.prop in the current dir.  
+
This should create both index.swish-e and index.swish-e.prop in the current dir.
 +
 
 +
=== swish.cgi ===
   −
Under construction
+
For PoC I have setup this basic configuration in /home/e-smith/files/ibays/Primary/cgi-bin
 +
 
 +
Copy (or symlink) swish.cgi. I prefer copy as I can modify the script without loosing the original.
 +
 
 +
cp /usr/libexec/swish-e/swish.cgi /home/e-smith/files/ibays/Primary/cgi-bin/
   −
=== swish.cgi ===
+
Create /home/e-smith/files/ibays/Primary/cgi-bin/.swishcgi.conf:
   −
Under construction
+
return {
 +
    swish_index    => '/home/e-smith/files/ibays/Primary/cgi-bin/index.swish-e',
 +
    title_property  => 'Just a Sample Title ',  # Not required, but recommended
 +
#
 +
#  Next line to make it clickable
 +
#
 +
    prepend_path    => 'file:////',
 +
#
 +
    link_property  => 'swishdocpath',
 +
    title_property => 'swishtitle',
 +
};
    
=== Options ===
 
=== Options ===
Line 88: Line 108:  
=== Usage ===
 
=== Usage ===
   −
Under construction
+
Search should now be available at http://smeservername/cgi-bin/swish.cgi
   −
[[Category: Contrib]]
+
[[Category: Howto]]

Navigation menu