title: How to implement Solr into Sitecore
body: <p>I have to implement Solr index into Sitecore and I would like to know what is the best approach?</p>
  
  <p>I looked at following approaches:</p>
  
  <ol>
  <li>Capture publish end event (or other events) and then push item to solr index</li>
  <li>Implement custom database crawler and get all changes from history table. Then using custom index push data to solr.</li>
  </ol>
  
  <p>Second approach sounds like a way to go (in my opinion). In this case do I need to create a new search index, or search manager?</p>
  
  <p>If anyone's done it before, can you point me into the right direction? Also if you could post some links to articles about sitecore-solr implementation.</p>
  
  <p><strong>UPDATE</strong>
  Ok, after reading sitecore documentation this is what I came up with :</p>
  
  <ol>
  <li><p>Create your custom SolrConfiguration class where you can set properties like solrserviceurl, add indexes and its definition (custom solr indexes)</p></li>
  <li><p>Create SolrIndex and add it (in the config file) to your SolrConfiguration. Which instantiating, solrindex should subscribe to AddEntry event of Sitecore History Manager, and communicate with solr crawlers.</p></li>
  <li><p>Create custom processor and hook into sitecore initialisation pipeline. Processor should initialize SolrConfiguration (from step 1)</p></li>
  <li><p>Since everything in your config file in  will be build using refrection, you can get instance of your cofiguration based on your config file</p></li>
  </ol>
  
  <p>How does that sound like. Can I have any comments please?</p>