Source for file search-example.php
Documentation is available at search-example.php
* Example usage for Pear class Search_Mnogosearch
* @author Gerrit Goetsch <goetsch@cross-solution.de>
* $Id: search-example.php,v 1.2 2004/11/10 10:33:14 goetsch Exp $
require_once 'Search/Mnogosearch.php';
// define the DNS to mnogosearch
// define('DSN_MNOGOSEARCH', 'mysql://user:password@localhost/database');
$params['excerptsize'] = "400";
$params['excerptpadding'] = "64";
$params['detectclones'] = 1; // enabled
$params['cachemode'] = 0; // disabled
$params['crosswords'] = 1; // disabled
$params['minwordlength'] = 2;
$params['charset'] = "iso-8859-1";
$params['dateformat'] = "%d-%m-%y";
$params['hlbeg'] = '<font color="#003300"><b>';
$params['hlend'] = '</b></font>';
$search->setParameters ($params);
// set the http parameters if you want.
$search->setHttpParameters (array (
$search->addLogicOperators (array (
'and' => array ('und','Und','UND'),
'or' => array ('oder','Oder','ODER'),
'not' => array ('nicht','Nicht','NICHT')
Documentation generated on Mon, 11 Mar 2019 14:31:31 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|