title: Sitecore patch file help needed
body: <p>I'm trying to patch the solr configurations with patch file below. But it doesn't seem to be working.</p>
  
  <p>Basically I'm trying to replace/override the default core with our own naming convention per environment.</p>
  
  <p>Could someone please review what am I doing wrong here:</p>
  
  <pre><code>&lt;configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"&gt;
  &lt;Sitecore&gt;
      &lt;contentSearch&gt;
          &lt;configuration&gt;
              &lt;indexes hint="list:AddIndex"&gt;
                  &lt;index id="sitecore_master_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"&gt;
                     &lt;patch:attribute param desc="core"&gt;"siteA_dev_$(id)"&lt;/param&gt;
                  &lt;/index&gt;
                  &lt;index id="sitecore_web_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"&gt;
                      &lt;param desc="core"&gt;"siteA_dev_$(id)"&lt;/param&gt;
                      &lt;param desc="rebuildcore"&gt;"siteA_dev_$(id)_swap"&lt;/param&gt;
                  &lt;/index&gt;
                  &lt;index id="sitecore_core_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"&gt;
                      &lt;param desc="core"&gt;"siteA_dev_$(id)"&lt;/param&gt;
                  &lt;/index&gt;
                  &lt;index id="sitecore_analytics_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"&gt;
                      &lt;param desc="core"&gt;"siteA_dev_$(id)"&lt;/param&gt;
                  &lt;/index&gt;
                  &lt;index id="sitecore_testing_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"&gt;
                      &lt;param desc="core"&gt;"siteA_dev_$(id)"&lt;/param&gt;
                  &lt;/index&gt;
                  &lt;index id="sitecore_suggested_test_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"&gt;
                      &lt;param desc="core"&gt;"siteA_dev_$(id)"&lt;/param&gt;
                  &lt;/index&gt;
                  &lt;index id="sitecore_fxm_master_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"&gt;
                      &lt;param desc="core"&gt;"siteA_dev_$(id)"&lt;/param&gt;
                  &lt;/index&gt;
                  &lt;index id="sitecore_fxm_web_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"&gt;
                      &lt;param desc="core"&gt;"siteA_dev_$(id)"&lt;/param&gt;
                  &lt;/index&gt;
                  &lt;index id="sitecore_list_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"&gt;
                      &lt;param desc="core"&gt;"siteA_dev_$(id)"&lt;/param&gt;
                  &lt;/index&gt;
                  &lt;index id="social_messages_master" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"&gt;
                      &lt;param desc="core"&gt;"siteA_dev_$(id)"&lt;/param&gt;
                  &lt;/index&gt;
                  &lt;index id="social_messages_web" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"&gt;
                      &lt;param desc="core"&gt;"siteA_dev_$(id)"&lt;/param&gt;
                  &lt;/index&gt;
                  &lt;index id="sitecore_marketing_asset_index_master" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"&gt;
                      &lt;param desc="core"&gt;"siteA_dev_$(id)"&lt;/param&gt;
                  &lt;/index&gt;
                  &lt;index id="sitecore_marketing_asset_index_web" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"&gt;
                      &lt;param desc="core"&gt;"siteA_dev_$(id)"&lt;/param&gt;
                  &lt;/index&gt;
              &lt;/indexes&gt;
          &lt;/configuration&gt;
      &lt;/contentSearch&gt;
      &lt;settings&gt;
          &lt;setting name="ContentSearch.Solr.ServiceBaseAddress"&gt;
              &lt;patch:attribute name="value"&gt;http://localhost:8983/solr&lt;/patch:attribute&gt;
          &lt;/setting&gt;
      &lt;/settings&gt;
  &lt;/sitecore&gt;
  </code></pre>