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

dries’s picture

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 your search_index SQL table empty?

mysql> SELECT COUNT(*) FROM search_index;

rinehart’s picture

Hi Dries,

Yes, the search_index SQL table is empty. Any other thoughts?

matt westgate’s picture

This comment may help you.

rinehart’s picture

That cron task works better when you navigate to cron.php, rather than chron.php

Operator error. Problem resolved. :)

- Mac

rinehart’s picture

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

warning: Cannot modify header information - headers already sent by (output
 started at C:\Program Files\Apache Group\Apache\htdocs\drupal\includes\common.i
nc:14) in C:\Program Files\Apache Group\Apache\htdocs\drupal\includes\common.inc
 on line 1172.

Notice: Undefined index: QUERY_STRING in C:\Program Files\Apache Gro
up\Apache\htdocs\drupal\includes\common.inc
on line 148

warning: session_start(): Cannot send session cookie - headers already sent
 by (output started at C:\Program Files\Apache Group\Apache\htdocs\drupal\includ
es\common.inc:14) in C:\Program Files\Apache Group\Apache\htdocs\drupal\modules\