Solved

Configure Search Settings in Drupal?

Posted on 2013-06-01
5
193 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 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

19 Experts available now in Live!

Get 1:1 Help Now