Using Solr or Lucene in Sitecore

Sitecore supports both Lucene and Solr search engines. As a developer, there is always a confusion of Using Solr or Lucene in Sitecore during development. However, these are the 2 most popular search engines...