Apache solr and drupal gotcha!

 
I setup a 2nd solr instance for spotmouth.com for my drupal instance.  Anytime I tried to run cron.php to get drupal to index my content, I got an error:
Cron run exceeded the time limit and was aborted.
No content was ever indexed.
The problem was that I had a Drupal page that contained php content (do redirect to the spotmouth.com application). Once I changed it to use a different input filter than PHP, the cron job functioned perfectly.
I am going to create a new Content Type in drupal, going to call it "No Search Page" and put the php code in this page.  Of course, I will configure the solr module to not index this content type.
 
 

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options