Configure Search Settings in Drupal?

With Drupal core, how often does the search function index the site?

Is it best practice to re-index as I add new content?

How can I ensure it's indexed daily, at a certain time, say midnight?
sandshakimiAsked:
Who is Participating?
 
scifikillrConnect With a Mentor Commented:
Cron simply automates the task for you. For search-related purposes, I would recommend having the host run cron hourly. It does depend on the size of your site, but unless you're running something with hundreds of thousands of nodes, you should even be able to set it to something like 30 minutes and still be well off. If you make it too frequent, it can bog the site down (as running it would take several minutes with a bigger site).
0
 
Aaron FeledyConnect With a Mentor Drupal Developer and ConsultantCommented:
Drupal will index new or updated content whenever cron.php is run. The frequency of this depends on if you have a cron job set up in your hosting to execute cron.php. Drupal 7 will also automatically run cron.php whenever a user views the site if cron has not been run for at least 3 hours.
0
 
Aaron FeledyDrupal Developer and ConsultantCommented:
Some additional information:

You can configure the frequency of automatic cron execution at admin/config/system/cron

The ideal way to configure cron is to set the automatic cron execution to never, then set up a cron job with your hosting provider so that the tasks are executed by the server rather than on a page load for the user. The result will be better performance because the user will never have to wait for cron to complete before their page loads.

More info about configuring cron:
https://drupal.org/cron

You can also configure search to index a page whenever it is saved using this module:
https://drupal.org/project/auto_indexer
0
 
sandshakimiAuthor Commented:
I have access to the web server hosting the site. It's on a LAMP stack.

So how would I setup cron for better performance?
0
 
Aaron FeledyDrupal Developer and ConsultantCommented:
This page explains how to set up cron jobs on your server:
https://drupal.org/node/23714
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.