the site www.wcces.org built with 5.1, but search function has never worked since it's up and running.

I guess must be some wrong configuration, but I couldn't figure out where.

fuzi

Comments

pbarnett’s picture

Have you checked Administer=>Logs=>Recent log entries and checked that cron is running?

Pete.

cog.rusty’s picture

First, there are the permissions (/admin/user/access#module-search) but you are probably talking about the admin user too. In this page

/admin/settings/search

you can see how much of your site has been indexed for searching. On every cron run it indexes a number of nodes.
- If indexing is at 0% then you need to configure a cron job to run periodically (say, every hour). For now you can run http://example.com/cron.php manually a few times to build the index, but you need an automatic cron job to index content which will be added in the future.
- If indexing is at 100% and still you can't find words which exist in the content, then maybe your search index has been corrupted. Reset it to 0% using the "Re-index site" button and then do the same as above.

fuzi’s picture

Access Control:
search module
administer search
search content anonymous user checked authenticated user checked
use advanced search anonymous user checked authenticated user checked

Search settings
I did re-index site, but it still display

Indexing status
0% of the site has been indexed. There are 60 items left to index.

I also did run cron.php, but I couldn't add cron on system, because the site hosted by 1and1.com not myself.

fuzi
http://wcces.org

dman’s picture

It's a common gotcha.
're-indexing will actually start by flushing the tables and starting from zero.
After running by hand, you should at least see the status start going up. refresh cron.php as needed.

But poormanscron will kick it for you on a restricted host.

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/

kosmik’s picture

I had a similar problem so I just "re-index site" in Search Settings and run cron manually (logs-status reports-cron maintenance tasks).

Use Poormanscron module if you have no access..