title: Spring data solr HttpSolrClient does not use core annotation from entity
body: <p>With a configuration as follows</p>
  
  <pre><code>@Configuration
  @EnableSolrRepositories(basePackages={"com.foo"}, multicoreSupport=true)
  public class SolrConfig {
  
      @Value("${solr.host}") String solrHost;
  
      @Bean
      public SolrClient solrClient() {
          return new HttpSolrClient(solrHost);
      }
  
      @Bean
      public SolrTemplate solrTemplate() {
          return new SolrTemplate(solrClient());
      }
  }
  </code></pre>
  
  <p>I have a simple entity:</p>
  
  <pre><code>@SolrDocument(solrCoreName = "core1")
  public class MyEntity implements Serializable {
  </code></pre>
  
  <p>If using SolrTemplate to execute queries, it does not use the coreName annotation on the document:</p>
  
  <pre><code>Page results = solrTemplate.queryForPage(search, MyEntity.class);
  </code></pre>
  
  <p>I get exception:</p>
  
  <pre><code>org.springframework.data.solr.UncategorizedSolrException: Error from server at http://localhost:8983/solr: Expected mime type application/octet-stream but got text/html.
  [..]
  Problem accessing /solr/select
  [...]
  &lt;title&gt;Error 404 Not Found&lt;/title&gt;
  </code></pre>
  
  <p>Changing the SolrTemplate bean to:</p>
  
  <pre><code>@Bean
  public SolrTemplate solrTemplate() {
      return new SolrTemplate(solrClient(), "core1");
  }
  </code></pre>
  
  <p>works</p>