By rinehart on
Sorry if this is a redundant post, but I can't figure out what the current status on the search module. I've just installed 4.3.2 and finished setting up all my content, but the search module doesn't return any results. I navigated to cron.php in my browser and tried to search again, but that had no effect. Is the search feature broken? If not, what should I be doing to build the search index for my site?
TIA,
Mac
Comments
Search index
After you (or a crontab) have accessed
cron.php, the index should have been built. That is, the search function should work, though admittedly is not always very effective. Is yoursearch_indexSQL table empty?mysql> SELECT COUNT(*) FROM search_index;search index empty
Hi Dries,
Yes, the search_index SQL table is empty. Any other thoughts?
Rebuilding the search index
This comment may help you.
where's my dunce cap?
That cron task works better when you navigate to cron.php, rather than chron.php
Operator error. Problem resolved. :)
- Mac
One more thing...
I understand from some posts that cron can be run from the command prompt, or as a schedule task. I gave this a shot and encountered a few errors shown below. There is no status indicator indicating whether these errors are fatal or not. It looks like all errors are related to HTTP variables expected by common.inc.
I ran a little test, checing node_cron_last, runing cron.php from the command prompt, and then checking node_cron_last again. The variable is being updated. Can I ignore these errors?
Notice: Undefined index: HTTP_HOST in C:\Program Files\Apache Group\
Apache\htdocs\drupal\includes\common.inc on line 14
Notice: Undefined index: QUERY_STRING in C:\Program Files\Apache Gro
up\Apache\htdocs\drupal\includes\common.inc on line 148
Notice: Undefined index: QUERY_STRING in C:\Program Files\Apache Gro
up\Apache\htdocs\drupal\includes\common.inc on line 148