Solved

Configure Search Settings in Drupal?

Posted on 2013-06-01
5
192 Views
Last Modified: 2013-06-19
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?
0
Comment
Question by:sandshakimi
  • 3
5 Comments
 
LVL 13

Assisted Solution

by:Arrow_1
Arrow_1 earned 250 total points
ID: 39213699
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
 
LVL 13

Expert Comment

by:Arrow_1
ID: 39213973
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
 

Author Comment

by:sandshakimi
ID: 39215952
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
 
LVL 9

Accepted Solution

by:
scifikillr earned 250 total points
ID: 39216370
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
 
LVL 13

Expert Comment

by:Arrow_1
ID: 39217608
This page explains how to set up cron jobs on your server:
https://drupal.org/node/23714
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now