We all remember the pain involved in switching Search Providers from Lucene to Solr.  There were many a tales of woe.  It crushed dreams.  Drinks were had in order to lament. Maybe it wasn’t that bad.  But… Sitecore listened to us!

With Sitecore 9, switching search providers is EASY.  How easy? Check out the setting in your web.config:

Is it really that easy? In a word, “yep”.  Prying open the other search-related configs, we can see some familiar SC9 markup. Here’s the top portion of the Sitecore.ContentSearch.Lucene.DefaultIndexConfiguration.config file:

Notice the search:require attribute.  That tells Sitecore to only execute that when the search is defined as Lucene. Opening up the corresponding Solr config file (Sitecore.ContentSearch.Solr.DefaultIndexConfiguration.config):

Long gone are the “An index with the name ‘sitecore_marketing_assets’ already exists” because you forgot to nuke the Lucene index definition config when you swapped to Solr.

This entry is part of my series "Nine on Nine" which is a "quick peek" at nine new things in Sitecore 9.  I've been messing a bit with the Technical Preview, and there's lots of exciting stuff to share.  Some of these might change a little in regards to General Availability, but hopefully not too much... These posts won't cover everything in depth, as I hope to do more detailed analysis in the coming months. Other Entries in Nine on Nine
  1. Connecting to Sitecore Rocks
  2. Controlling Configuration Load Order
  3. Dynamic Placeholders
  4. Server Role Configuration
  5. Sitecore Forms
  6. Switching Search Providers
  7. SIF and HTTPS Everywhere
  8. Using Set in Configuration Files
  9. Infrastructure Software changes
There's more than just nine new things.  XConnect is a huge change to how data is collected.  Cloud-first support is another big thing.  Look to the official RSS Community Blog Feed, check out the Sitecore Slack Channel, hit up the Sitecore Stack Exchange or leave the Official Forums for more information.  It's a great time to be a Sitecore Developer!