Zum Inhalt springen

indexed search: keine indexierung

Erstellt am 20. Februar 2005 · 5 Antworten · letzte Antwort am 5. Juni 2005

Tags: Datenbank, Suche, Frage, TYPO3 3

hoppelmoppel ·

Hi!

Hab nen problem mit der Indexierung. Und zwar bin ich laut Anleitung vorgegangen und hab die Suche eingerichtet. Jedoch funktioniert die Indexierung nicht.
Wenn ich unter info/indexed search reingehe kommt eine Fehlermeldung:

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/localhost/htdocs/test/typo3/t3lib/class.t3lib_db.php on line 723

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/localhost/htdocs/test/typo3/t3lib/class.t3lib_db.php on line 723

und das zeigt er unter den index tables an
test
Warning: phash-row "116788523" didn't have a representation in the index_section table!
test1
Warning: phash-row "180799271" didn't have a representation in the index_section table!

TS:
page.config.no_cache=0
page.config.index_enable = 1

Weiß einer rat?

aheuer ·

Hallo,

das kommt meist immer wenn irgendwelche Tabellen fehlen!

Geh mal in das Install tool, dann auf "Database Analyer" (glaub ich) und dort auf "Compare". Dann vergleicht der den Soll mit dem Ist Zustand und gibt ggf. Änderungen an die dann geschrieben werden können.

Gruß,
André

hoppelmoppel ·

Typo3 version 3.7
indexed_search: 2.1.3

hmm ...

There seems to be a number of differencies between the database and the
selected SQL-file. Please select which statements you want to execute in
order to update your database:

Add tables

CREATE TABLE index_grlist (
phash int(11) DEFAULT '0' NOT NULL,
phash_x int(11) DEFAULT '0' NOT NULL,
hash_gr_list int(11) DEFAULT '0' NOT NULL,
gr_list tinytext NOT NULL,
uniqid int(11) DEFAULT '0' NOT NULL auto_increment,
PRIMARY KEY (uniqid),
KEY joinkey (phash,hash_gr_list),
KEY phash_grouping (phash_x,hash_gr_list)
) TYPE=MyISAM;

CREATE TABLE index_section (
phash int(11) DEFAULT '0' NOT NULL,
phash_t3 int(11) DEFAULT '0' NOT NULL,
rl0 int(11) unsigned DEFAULT '0' NOT NULL,
rl1 int(11) unsigned DEFAULT '0' NOT NULL,
rl2 int(11) unsigned DEFAULT '0' NOT NULL,
page_id int(11) DEFAULT '0' NOT NULL,
uniqid int(11) DEFAULT '0' NOT NULL auto_increment,
PRIMARY KEY (uniqid),
KEY joinkey (phash,rl0),
KEY page_id (page_id),
KEY rl0 (rl0,rl1,phash),
KEY rl0_2 (rl0,phash)
) TYPE=MyISAM;

CREATE TABLE index_stat_search (
uid int(11) DEFAULT '0' NOT NULL auto_increment,
searchstring tinytext NOT NULL,
searchoptions blob NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
feuser_id int(11) unsigned DEFAULT '0' NOT NULL,
cookie varchar(10) DEFAULT '' NOT NULL,
IP tinytext NOT NULL,
hits int(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (uid)
) TYPE=MyISAM;

CREATE TABLE index_stat_word (
uid int(11) DEFAULT '0' NOT NULL auto_increment,
word varchar(30) DEFAULT '' NOT NULL,
index_stat_search_id int(11) DEFAULT '0' NOT NULL,
tstamp int(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (uid),
KEY tstamp (tstamp,word)
) TYPE=MyISAM;

mfg

aheuer ·

Jo genau!

Dann gehst du unten auf "Write changes to DB" und der fügt die fehlenden Tabellen hinzu.

Schau dazu auber auch mal hier:
#18062

Gruß

Unbekannter Benutzer ·

Hallo Hoppel,
liegt daran, daß Tabellen fehlen. Extension deinstallieren, dann einfach mit einem Editor die Datei unter typo3/ext/indexed_search/ext_tables.sql überall wo "DEFAULT '0' NOT NULL auto_increment," steht, in "NOT NULL auto_increment," ändern, neu installieren und es sollte gehen.
Gruß,
Mimung