The swish search class
This class inherits the functionality of the generic 'search' class. It extends it to implement a swish++ search. To use this you must install the swish++ system on the web server running this code. There is a Debian package to do this for you or else retrieve the tarball from: http://homepage.mac.com/pauljlucas/software/swish/
NB: After installing make sure that there are links to the main executables: search++, index++, extract++ etc. in a directory on the path of the executing script, eg: /usr/bin
Located in /swish-defs.php (line 52)
search | --swish_search
Directory to do the search from
Name of index file to use (defaults to 'swish++.index')
Inherited from search
search::$date_end
search::$date_fieldname
search::$date_start
search::$executed
search::$hit
search::$max_results
search::$query
search::$searchterm
search::$skip_results
search::$title
Constructor
Create a new swish++ search
Execute the swish++ search
Here we execute a swish++ search, overriding the method in the parent class. This involves piping an OS command containing the search query terms. The default is to execute 'search++' without any path to the executable, relying on webserver PATH settings. You can over-ride this by specifying a path to the executable here if required.
Set search directory Set the root directory to go to and search from.
Set search index filename Defines the index filename to use for searching. If no filename is specified in the constructor (@see swish_search()) or via this method, then the default is used: 'swish++.index'.
NB: This should be the basename only, not a path to a file.
Inherited From search
search::search()
search::clear_daterange()
search::clear_search()
search::does_not_match()
search::has_daterange()
search::hitcount()
search::initialise()
search::match()
search::may_match()
search::must_match()
search::reset_search()
search::set_daterange()
search::set_maxresults()
search::set_skipresults()
search::termcount()
Documentation generated by phpDocumentor 1.3.0RC3