title: Sitecore Lucene: content delivery server index not updating on publish
body: <p>I created a custom search page using the default <code>sitecore_web_index</code> and everything seemed to work until I migrated to my test environment that has separate content management and content delivery servers.  The index on the CD server is not getting updated on publish (the CM server does), if I rebuild the index from the control panel, I see updates.  So I believe the index and the search page are working correctly.</p>
  
  <p>The index is using the <code>onPublishEndAsync</code> strategy. The Sitecore Search and Index Guide (<a href="http://sdn.sitecore.net/upload/sitecore7/70/sitecore_search_and_indexing_guide_sc70-usletter.pdf">http://sdn.sitecore.net/upload/sitecore7/70/sitecore_search_and_indexing_guide_sc70-usletter.pdf</a>) section 4.4.2 states:</p>
  
  <blockquote>
    <p>This strategy does exactly what the name implies. During the initialization, it subscribes to the 
    <code>OnPublishEnd</code> event and triggers an incremental index rebuild. With separate CM and CD servers, this 
    event will be triggered via the <code>EventQueue</code> object, meaning that the <code>EventQueue</code> object needs to be 
    enabled for this strategy to work in such environment.</p>
  </blockquote>
  
  <p>My web.config has <code>&lt;setting name="EnableEventQueues" value="true"/&gt;</code></p>
  
  <p>Also from the Search and Index Guide:</p>
  
  <blockquote>
    <p><strong>Processing</strong><br>
    The strategy will use the <code>EventQueue</code> object from the database it was initialized with:
        <code>&lt;param desc="database"&gt;web&lt;/param&gt;</code><br>
    This means that there are multiple criteria towards successful execution for this strategy:</p>
    
    <ul>
    <li>This database must be specified in the <code>&lt;databases /&gt;</code> section of the configuration file.</li>
    <li>The <code>EnableEventQueues</code> setting must be set to true.</li>
    <li>The <code>EventQueue</code> table within the preconfigured database should have entries dated later than 
    index's last update timestamp.</li>
    </ul>
  </blockquote>
  
  <p>I'm not sure of the <code>&lt;param desc="database"&gt;web&lt;/param&gt;</code> setting, because the publishing target (and database ID) for the CD server is <code>pub1</code>.  I tried changing <code>web</code> to <code>pub1</code>, but then neither servers' index was updated on a publish (so it's changed back to <code>web</code>).</p>
  
  <p>The system was recently upgraded from Sitecore 6.5 to 7.2, so there are a couple indexes using <code>Sitecore.Search</code> API and these indexes are updated on publish.</p>
  
  <p>Is the database param on the <code>EventQueue</code> wrong considering the multiple publishing targets?  Is there something else I'm missing, or perhaps a working example of a CM -> CD environment I could compare to?</p>
  
  <p>TIA</p>
  
  <p>EDIT:
  If I wouldn't have had a co-worker sitting next to me both Friday and today who can confirm, I would think I'm going crazy.  But now, the CD server is getting updates to the index, but the CM server is not getting updates. What would make the CM server not get updates now?</p>