Upon successful adding, editing or deleting content from Drupal, I would like the engine to create an XML file that is created and saved into a specific folder for processing to update the Solr engine.

Can someone tell me in layman terms how to go about this?

A typical file looks like this:

http://www.drupal.org/node/11222 Drupal saves the day
Drupal is saving me lots of time in developing a cms for our website...
Newspaper boy
Introduction
CMS

This example file would be saved as ''11222.xml''

THanks for any help.

Comments

hickory’s picture

You can use hook_update index to post to Solr when content is updated, rather than creating a separate XML file - I have this working; it's quite straightforward.

joetomgo’s picture

Would you be willing to share the code to make this work? I'm new to PHP and Drupal and am just learning.

Thanks for the lead.

hickory’s picture