Juhuuuuuuuu!!!!!
Die Suche funktionert. Tausend dank an euch. Hier sind die Werte, die ich in die config.php eintragen musste:
$config['installBase'] =
'/home/sites/www.firmenname.de/web/turmklinik.de/dgssearch'
$config['urlBase'] = "http://www.turmklinik.de";
$config['siteBase'] =
'/home/sites/www.firmenname.de/web/turmklinik.de/';
$config['fsBase'] = '/home/sites/www.firmenname.de/web/turmklinik.de/';
Nur habe ich jetzt dummerweise den Fehler
Error: Connection to MySQL server 'localhost' failed.
Also habe ich in der *allseits beliebten* config.php unter
/* Database Options -- Search module 'db' */
die Zeile
$database[0]['server'] = 'localhost';
geändert in
$database[0]['server'] = 'www.firmenname.de'; /* The SQL Server. (Ignored by ODBC). */
Aber keine Wirkung. Kennt jemand diese Fehlermeldung? Dass eine Datenbank benutzt wird, soll die Suche beschleunigen, denke ich. Und wenn ich unter
$config['searchModules'] = array("fs, db"); /* Modules to search for results. Available: fs and db. */
einfach das
, db weglasse, dann läufts es auch ohne. Also wofür brauche ich überhaupt die Datenbank-Suche, wenn ich doch die Filesystem-Suche habe? So sieht es da jetzt aus:
PHP-Code:
$database[0]['type'] = 'mysql'; /* Supports mysql, pgsql, mssql, ibase and odbc.*/
$database[0]['server'] = 'www.firmenname.de'; /* The SQL Server. (Ignored by ODBC). */
$database[0]['port'] = 0; /* Database port. Set 0 for default port. */
$database[0]['username'] = 'username'; /* Username to connect to database. */
$database[0]['password'] = 'password'; /* Password to connect to database. */
$database[0]['database'] = 'database'; /* The database or DSN you will be accessing. */
$database[0]['persistent'] = true; /* Use persistent database connections. */
$database[0]['table'] = array('art'); /* The table in database to search. */
$database[0]['tableAssoc'] = ''; /* If multiple tables listed, is used to join the tables. See INSTALL. */
$database[0]['searchField'] = array('title', 'artist'); /* The fields to search. */
$database[0]['returnField'] = array('id', 'title', 'artist'); /* Fields returned from db. Can be used to sub into link, url and desc. */
$database[0]['link'] = 'Title is @1@'; /* The link used for results. */
$database[0]['url'] = 'http://www.xyz.com/bogus.php?id=@0@';/* The URL used for display the data from your database. */
$database[0]['desc'] = array('The artists name is @2@.'); /* The description to display. */
$database[0]['descWidth'] = 80; /* The width of the desc for this entry. Set to 0 to disable. */
$database[0]['wildcard'] = 'both'; /* Wildcard support: none, left, right or both */
$database[0]['orderByDepth'] = -1; /* OrderBy Depth. Default of -1 is all. See INSTALL. */
$database[0]['forceLower'] = false; /* Forces a case-insensitive search by lowercasing everything. */
Irgendwie kann ich nicht zwischen Beispiel-Text und echten Werten unterscheiden.