Hi, after drupal 6.17 installation, the search function doesn't work. When I'm trying to search something I got this error message:
user warning: Table 'xxxxxxxxx.search_index' doesn't exist query: SELECT SUM(i.score * t.count) AS score FROM search_index i INNER JOIN search_total t ON i.word = t.word INNER JOIN node n ON n.nid = i.sid WHERE n.status = 1 AND (i.word = 'antywirus') AND i.type = 'node' GROUP BY i.type, i.sid HAVING COUNT(*) >= 1 ORDER BY score DESC LIMIT 0, 1 in /home/www/xxxxxxxxxxxxxxxxx/modules/search/search.module on line 946.
Why the table doesn't exist ?
In the search settings, it says that my site is 100% indexed.
I couldn't find any solution. Does anybody know how to solve the problem ?
Comments
I am having the same problem.
I am having the same problem. Any solutions?
Ok, I figured it out. You
Ok, I figured it out. You just need to create the table. Save the following to a file named search_total.sql
Just add in the name of the database at -- Database: `DATABASENAME` below
Still need help
Sorry - can you be more explicit? If I use this file, in what directory do I put it?
If I use phpmyadmin, do you jknow what I should do?
Thanks.
You do all of the above in
You do all of the above in phpmyadmin. You edit that file I attached with your database name then import it in phpmyadmin
Another thing you could try
Another thing you could try is simply uninstalling the search module (under core in your modules listing) and re-install it again.
----
"People make mistakes. To really mess something up you need a computer."
Needed if for a drupal 5
Needed it for a drupal 5 site.
@ndstate your solution was correct but the sql file you gave was for search_total not for search_index